Type Alias ExtractItem<S>

ExtractItem<S>: S[number] extends undefined
    ? undefined
    : S[number] extends infer V
        ? V | undefined
        : S[number] | undefined

Type Parameters

  • S extends ReadonlyArray<unknown>