Skip to main content

Type Alias: DecideQuestion

DecideQuestion = { criteria?: { false?: unknown; true?: unknown; }; instructions: unknown; type: "noul"; } | { criteria: Record<string, unknown>; instructions: unknown; type: "choice"; } | { criteria: unknown[]; instructions: unknown; type: "score"; }

Defined in: packages/client/src/types.ts:280

A typed question about state, in System One's own shape. Build them with noul, choice and score to keep the answer types; instructions may be an object naming fields of state.

Union Members​

Type Literal​

{ criteria?: { false?: unknown; true?: unknown; }; instructions: unknown; type: "noul"; }

Yes or no: the answer is a probability.


Type Literal​

{ criteria: Record<string, unknown>; instructions: unknown; type: "choice"; }

One of the options (option → description).


Type Literal​

{ criteria: unknown[]; instructions: unknown; type: "score"; }

A level on an ordered scale (descriptions, low to high).