Skip to main content
Create a score question using an ordered rubric.

Call Signature

Type Parameters

T

T extends ScoreCriteria

Parameters

instructions

EntryType

criteria

T

Returns

ScoreQuestion<T>

Call Signature

Type Parameters

T

T extends readonly EntryType[]

Parameters

instructions

EntryType

criteria

T & number extends T["length"] ? unknown : never

Returns

ScoreQuestion<readonly [T[number], T[number], T[number]]>

Param

instructions The question as text, a JSON object or array, or null.

Param

criteria At least two descriptions indexed by score from zero; entries may be null. A list built at runtime, such as a string[], is accepted, and systemOne rejects it when it has fewer than two entries.