TypeFailure
Defined in: failure.ts:49
Wrong type at a path.
Extends
Section titled “Extends”BaseFailure
Properties
Section titled “Properties”actual
Section titled “actual”
readonlyactual:string
Defined in: failure.ts:56
Actual type found (e.g., ‘undefined’, ‘object’, ‘null’)
expected
Section titled “expected”
readonlyexpected:string
Defined in: failure.ts:54
Expected type (e.g., ‘string’, ‘number’, ‘array’)
readonlykind:"type"
Defined in: failure.ts:50
message
Section titled “message”
readonlymessage:string
Defined in: failure.ts:32
Human-readable error message
Inherited from
Section titled “Inherited from”BaseFailure.message
readonlynode:NodeId
Defined in: failure.ts:30
The AST node where the failure occurred
Inherited from
Section titled “Inherited from”BaseFailure.node
readonlypath:JsonPath
Defined in: failure.ts:52
Path where the type mismatch occurred