type-fest 2.5.2 → 2.5.3

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.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
@@ -35,7 +35,7 @@
35
35
  "@sindresorhus/tsconfig": "~0.7.0",
36
36
  "expect-type": "^0.12.0",
37
37
  "tsd": "^0.17.0",
38
- "typescript": "^4.1.3",
38
+ "typescript": ">=4.2",
39
39
  "xo": "^0.43.0"
40
40
  },
41
41
  "types": "./index.d.ts",
package/readme.md CHANGED
@@ -58,8 +58,8 @@ PR welcome for additional commonly needed types and docs improvements. Read the
58
58
 
59
59
  ## Install
60
60
 
61
- ```
62
- $ npm install type-fest
61
+ ```sh
62
+ npm install type-fest
63
63
  ```
64
64
 
65
65
  *Requires TypeScript >=4.2*
@@ -168,6 +168,12 @@ Click the type names for complete docs.
168
168
  - [`ExtractProperties` and `ExtractMethods`](https://github.com/sindresorhus/type-fest/pull/4) - The types violate the single responsibility principle. Instead, refine your types into more granular type hierarchies.
169
169
  - [`Url2Json`](https://github.com/sindresorhus/type-fest/pull/262) - Inferring search parameters from a URL string is a cute idea, but not very useful in practice, since search parameters are usually dynamic and defined separately.
170
170
 
171
+ ## Alternative type names
172
+
173
+ *If you know one of our types by a different name, add it here for discovery.*
174
+
175
+ - `PartialBy` - See [`SetOptional`](https://github.com/sindresorhus/type-fest/blob/main/source/set-optional.d.ts)
176
+
171
177
  ## Tips
172
178
 
173
179
  ### Related
package/source/join.d.ts CHANGED
@@ -26,4 +26,4 @@ export type Join<
26
26
  Strings extends [string | number] ? `${Strings[0]}` :
27
27
  // @ts-expect-error `Rest` is inferred as `unknown` here: https://github.com/microsoft/TypeScript/issues/45281
28
28
  Strings extends [string | number, ...infer Rest] ? `${Strings[0]}${Delimiter}${Join<Rest, Delimiter>}` :
29
- string | number;
29
+ string;