type-fest 2.3.3 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-fest",
3
- "version": "2.3.3",
3
+ "version": "2.3.4",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
@@ -14,7 +14,7 @@
14
14
  "node": ">=12.20"
15
15
  },
16
16
  "scripts": {
17
- "test": "xo && tsd && tsc"
17
+ "test": "xo && tsd && tsc && node script/test/source-files-extension.js"
18
18
  },
19
19
  "files": [
20
20
  "index.d.ts",
@@ -52,6 +52,6 @@ type FooWithoutA = Except<Foo, 'a' | 'c'>;
52
52
 
53
53
  @category Utilities
54
54
  */
55
- export type Except<ObjectType, KeysType> = {
55
+ export type Except<ObjectType, KeysType extends keyof ObjectType> = {
56
56
  [KeyType in keyof ObjectType as Filter<KeyType, KeysType>]: ObjectType[KeyType];
57
57
  };