1 | export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
2 | export declare const tuple: <T extends string[]>(...args: T) => T;
|
3 | export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
4 | /**
|
5 | * https://stackoverflow.com/a/59187769 Extract the type of an element of an array/tuple without
|
6 | * performing indexing
|
7 | */
|
8 | export declare type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
9 | /** https://github.com/Microsoft/TypeScript/issues/29729 */
|
10 | export declare type LiteralUnion<T extends U, U> = T | (U & {});
|