• Run the given decoder on the given input.

    Type Parameters

    • T

      The result type of the decoder and also return type of the function

    Parameters

    • decoder: Decoder<T>

      The decoder to use

    • json: any

      The unknown value you want to decode

    Returns T

    The value as advertised by the decoder

    Throws

    If any decoder causes an error this function will throw it

Generated using TypeDoc