Skip to content

ui/build/collection-form/collection-mutation-outcome

ui/build/collection-form/collection-mutation-outcome

Variables

isPendingApprovalSignal

const isPendingApprovalSignal: <I>(input) => input is I & { action: "update" | "create" | "delete"; collection: string; id: string; pending: true; requestId: string };

Defined in: apps/website/.api-docs-entry/ui/build/collection-form/collection-mutation-outcome.d.ts:9

Recognizes Bolt's approval acquisition outcome without coupling the UI package to Bolt's client runtime. Collection clients expose Promise, so this accepted command is delivered through their rejection channel as a structured signal rather than a conventional mutation failure.

Type Parameters

Type Parameter
I

Parameters

Parameter Type
input I

Returns

input is I & { action: "update" | "create" | "delete"; collection: string; id: string; pending: true; requestId: string }

Functions

submitCollectionMutation()

function submitCollectionMutation(mutation): Effect<void, unknown>;

Defined in: apps/website/.api-docs-entry/ui/build/collection-form/collection-mutation-outcome.d.ts:17

Runs a collection mutation while treating an acquired approval as a successful submission.

Parameters

Parameter Type
mutation () => Promise<void>

Returns

Effect<void, unknown>