Type alias OneOf<T, V, NK>

OneOf<T, V, NK>: {
    [K in NK]: T extends V[K]
        ? V[K]
        : never
}[NK]

Type Parameters

  • T

  • V extends any[]

  • NK extends keyof V = Exclude<keyof V, keyof any[]>

Generated using TypeDoc