Package: effect
Module: Encoding
Checks whether a value is an EncodingError.
When to use
Use to narrow an unknown value before handling it as an EncodingError from
encoding or decoding code.
Details
Returns true when the value carries the EncodingErrorTypeId marker and
narrows the value to EncodingError.
See
EncodingError for the structured error produced by failed
encoding and decoding operationsSignature
declare const isEncodingError: (u: unknown) => u is EncodingError
Since v4.0.0