Fix Except autocomplete (#268)

This commit is contained in:
Szymon Marczak 2021-09-19 19:01:54 +02:00 committed by GitHub
parent 50a7d55769
commit 93fa71c8ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
source/except.d.ts vendored
View File

@ -52,6 +52,6 @@ type FooWithoutA = Except<Foo, 'a' | 'c'>;
@category Utilities
*/
export type Except<ObjectType, KeysType> = {
export type Except<ObjectType, KeysType extends keyof ObjectType> = {
[KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
};