Skip to content

asBoolean

asBoolean(value, label): boolean

Defined in: src/validation.ts:53

Narrow value to a boolean or throw with a descriptive label-prefixed message.

unknown

string

boolean