Skip to content

Interface: WidgetRunResult ​

Result of AppsService.runWidget | `k.apps.runWidget`: the outcome of launching a widget and waiting for the data it returns when it finishes.

Properties ​

data? ​

ts
optional data?: any;

Data returned by the launched widget through kapp.finish(result) (in its script). Only present when `resolved` is true.


reason? ​

ts
optional reason?: string;

Failure cause when `resolved` is false: not_found (widget id unknown or not on this channel), disabled (widget disabled), aborted, no_result (the widget finished without returning data), timeout, or a validation error message.


resolved ​

ts
resolved: boolean;

true if the launched widget finished normally and returned data.