mirror of
https://github.com/sindresorhus/type-fest.git
synced 2025-12-08 19:25:05 +00:00
Fix Except autocomplete (#268)
This commit is contained in:
parent
50a7d55769
commit
93fa71c8ff
2
source/except.d.ts
vendored
2
source/except.d.ts
vendored
@ -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];
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user