@mikuroxina/mini-fn
    Preparing search index...

    Function decSum

    • Decodes a sum type value with the keyDecoder and decoders.

      Type Parameters

      • K extends PropertyKey

      Parameters

      • keyDecoder: Decoder<K>

        A decoder that decodes the index key of the sum type.

      Returns <T>(variantDecoders: Record<K, Decoder<T>>) => Decoder<T>

      The sum type decoder.