Function asOptionalValue

  • Takes a decoder for an item of type T and returns a decoder for an OptionalValue (which is an alias for undefined | null | T)

    Type Parameters

    • T

    Parameters

    • itemDecoder: Decoder<T>

      decoder for item T

    Returns Decoder<OptionalValue<T>>

    decoder for optional T

Generated using TypeDoc