Line

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

ui/client/features/requirement/domain/ProofSkip

Pure (DOMAIN-001): the reason a person gives for skipping the proof of a screen.

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

Variables#

PROOF_REASON#

const PROOF_REASON: object

Defined in: ui/client/features/requirement/domain/ProofSkip.ts:4

The reason of a skip is a sentence, not a shrug. Mirrors ui/server requirementProofApi.mjs PROOF_REASON (the server refuses the rest again).

Type Declaration#

max

readonly max: 200 = 200

min

readonly min: 8 = 8

Functions#

skipReasonOf()#

skipReasonOf(draft): { ok: true; reason: string; } | { error: string; ok: false; }

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

The skip reason to send, trimmed, or what is wrong with it: empty, too short, too long or not one line.

Parameters#

draft

string

Returns#

{ ok: true; reason: string; } | { error: string; ok: false; }