The Key variant of the ParseError type represents an error that occurs when a key in an object is invalid.
This error typically occurs when the actual value is not a valid key type (e.g. a string or number)
or when the key is not present in the object being decoded. In either case, the key field of the error will contain
the invalid key value. This error is typically used in combination with the Unexpected error,
which indicates that an unexpected key was found in the object being decoded.
The
Key
variant of theParseError
type represents an error that occurs when a key in an object is invalid. This error typically occurs when theactual
value is not a valid key type (e.g. a string or number) or when the key is not present in the object being decoded. In either case, thekey
field of the error will contain the invalid key value. This error is typically used in combination with theUnexpected
error, which indicates that an unexpected key was found in the object being decoded.Since
1.0.0