MatchingModel <S>
Index
Constructors
Methods
Constructors
constructor
Type parameters
- S: object
Parameters
actual: AModel<S, any>
The model that was matched.
optionalschemaTranslator: (synth: any) => S
Reads
actualas the matched schema, when the two differ.
Returns MatchingModel<S>
Methods
getActual
The model itself, with its schema hidden - read it through MatchingModel.getSchemaInstance.
Returns AModel<Record<never, never>, any>
getSchemaInstance
The model read as the schema you matched on.
Returns S
hasSchemaTranslator
Whether the match went through a schema translation.
Returns boolean
A model found by schema. See MatchingAnchor.
Types