devtypes - v1.1.0
    Preparing search index...

    Type Alias ToReadonlyArray<L>

    ToReadonlyArray: ReadonlyArray<ListElement<L>>

    Convert a list-like structure to a readonly array.

    Type Parameters

    • L

      List-like type

    1.1.0

    Extracts the element type and wraps it in a readonly array.

    type A = ToReadonlyArray< number[] >;      // ReadonlyArray< number >
    type B = ToReadonlyArray< Set< string > >; // ReadonlyArray< string >