UNPKG

ringcentral-widgets

Version:
7 lines (6 loc) 162 B
/** * Get type from array to union type example => [a, b] to 'a' | 'b' */ export type TupleToUnion<T> = T extends { [index: number]: infer E } ? E : never;