type-plus
Version:
Provides additional types for TypeScript.
10 lines • 340 B
TypeScript
/**
* Gets the union of value types in `A`
*/
export type UnionOfValues<A extends Array<any>> = A extends Array<infer E> ? E : never;
/**
* Gets the union of value types in `A`
* @deprecated Please use `UnionOfValues` instead.
*/
export type ArrayValue<A extends any[]> = UnionOfValues<A>;
//# sourceMappingURL=union_of_values.d.ts.map