es-stl - v3.0.3
    Preparing search index...

    Type Alias ElementOf<T>

    ElementOf: T[number]

    Element type of an array or tuple.

    Type Parameters

    • T extends readonly unknown[]

      Array or tuple whose element type is extracted.

    type Status = ElementOf<readonly ['idle', 'ready']>;
    const status: Status = 'ready';