Type alias MappedType<T, R>

MappedType<T, R>: { [ k in keyof R]: R[k] extends [T, infer P] ? P : never }[keyof R]

Maps a type to another type.

Type Parameters

  • T

    The input type.

  • R

    The type relation map. A type which has indices of pair, where each pair has the type [T, V], where T is the input type, and V is the output type.

Generated using TypeDoc