Function indexAccess

  • Query a container type and return the result.

    container[index]

    e.g. {a: string}['a'] => string e.g. {a: string, b: number}[keyof T] => string | number e.g. [string, number][0] => string e.g. [string, number][number] => string | number

    Parameters

    Returns Type

Generated using TypeDoc