• Creates an array decoder from a given decoder. Array decoder checks that the input value is an array that has all members valid for the provided decoder.

    Example

    // Creates a decoder that will successfully decode input value: [1, undefined, 3].
    const decoder = D.array(D.optional(D.number)));

    Type Parameters

    • T

    Parameters

    Returns Decoder<T[]>

Generated using TypeDoc