Skip to content

UiOpenOptions

type UiOpenOptions<T = UiJson> = {
route?: string; interactive?: boolean; failureNotice?: boolean;
interaction?: { timeoutMs?: number; parse?: (untrusted: UiJson) => T };
};
Field Meaning
route Packaged HTML path, optionally with a query; defaults to index.html.
interactive Whether the top view can take keyboard/mouse input. Defaults to true.
failureNotice False suppresses the small default failure notice. Defaults to true.
interaction Enable submit/cancel responses. Without it the view remains until closed or failed.
interaction.timeoutMs 1 ms to 24 h; defaults to 60,000 ms from readiness. See the HTML UI guide.
interaction.parse Validate untrusted JSON and return T. Throwing ends the view with invalid-ui-response.