• Useful for building error messages for your own little decoders. Since this function is used internally, the message layout will be the same, which makes it easier for humans to parse error messages. Especially when decoding complex values.

    Parameters

    • description: string

      Describe what kind of value you expected

    • value: any

      Whatever value you got instead

    Returns string

    A nicely formatted error string

Generated using TypeDoc