Creates a type check error from an object payload.
Type check error data.
Sub-path (where the root is the value being type checked) where the error occurred.
Name of the expected type.
Actual value.
OptionaltypeCheckedValue: anyThe value where the type check was invoked.
A type checking error.