Skip to content

widgets.state_set

Stores one key of a widget instance’s state (DMN-086).

/** `widgets.state_set` params (DMN-086). */
export type SetWidgetStateParams = {
/** The widget instance: its `instance` prop, else its reference (AGT-010). */
instance: string;
key: string;
/** Any JSON value; `null` deletes the key. */
value: unknown;
workspaceId: string;
};
/** No params, or the `{}` result. */
export type Empty = Record<string, never>;