UNPKG

474 BTypeScriptView Raw
1declare type IsEqual<T, U> = (<G>() => G extends T ? 1 : 2) extends (<G>() => G extends U ? 1 : 2) ? true : false;
2declare type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
3export declare type Except<ObjectType, KeysType extends keyof ObjectType> = {
4 [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
5};
6export {};
7//# sourceMappingURL=except.d.ts.map
\No newline at end of file