Skip to main content

Function: requirementClassOf()

requirementClassOf(statement): "mandatory" | "recommendation" | "option" | undefined

Defined in: packages/contracts/src/schemas/governance-metamodel.ts:187

The Metamodel class of a requirement, read from its opening keyword. Derived, never stored, so the label a reader sees cannot disagree with the sentence it labels.

Parameters​

statement​

string

A requirement's text.

Returns​

"mandatory" | "recommendation" | "option" | undefined

mandatory, recommendation or option; undefined without a keyword.