Skip to content

Type Alias: InvariantCheck ​

InvariantCheck = (model) => boolean | string | void

Defined in: src/ActiveModel.ts:85

A model-level check: return false (or a message) when violated; throwing also counts

Parameters ​

model ​

any

Returns ​

boolean | string | void