Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/requirement/domain/Examples

Pure (DOMAIN-001): the three example sentences the screen offers as buttons.

Cockpit client (features), next. Source: ui/client/features/requirement/domain/Examples.ts.

Type Aliases#

Example#

Example = object

Defined in: ui/client/features/requirement/domain/Examples.ts:5

Properties#

id

id: string

Defined in: ui/client/features/requirement/domain/Examples.ts:5

label

label: string

Defined in: ui/client/features/requirement/domain/Examples.ts:5

text

text: string

Defined in: ui/client/features/requirement/domain/Examples.ts:5

Variables#

EXAMPLES#

const EXAMPLES: Example[]

Defined in: ui/client/features/requirement/domain/Examples.ts:7

Functions#

withAnswer()#

withAnswer(answers, question, option): Answer[]

Defined in: ui/client/features/requirement/domain/Examples.ts:22

The answers after one more is given. A word of the card is answered against the card as it stood then (its id renumbers once a word is answered), so card answers are only ever appended, in order. A placement question has a stable id, so a changed mind replaces the earlier answer.

Parameters#

answers

Answer[]

question

Pick<Question, "id" | "source">

option

string

Returns#

Answer[]