Creates an instance of TypeError.
Sub-path (where the root is the value being type checked) where the error occured.
Name of the expected type.
Actual value.
OptionaltypeCheckedValue: anyThe value where the type check was invoked.
ReadonlyactualActual value.
ReadonlyexpectedName of the expected type.
ReadonlymessageThe type check error message.
ReadonlypathSub-path (where the root is the value being type checked) where the error occured.
Optional ReadonlytypeThe value where the type check was invoked.
A type checking error.