Skip to content

Commit

Permalink
Fix Except autocomplete (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak authored Sep 19, 2021
1 parent 50a7d55 commit 93fa71c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/except.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};

0 comments on commit 93fa71c

Please sign in to comment.