type-fest 2.5.4 → 2.6.0

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.4",
3
+ "version": "2.6.0",
4
4
  "description": "A collection of essential TypeScript types",
5
5
  "license": "(MIT OR CC0-1.0)",
6
6
  "repository": "sindresorhus/type-fest",
package/readme.md CHANGED
@@ -111,7 +111,6 @@ Click the type names for complete docs.
111
111
  - [`SetOptional`](source/set-optional.d.ts) - Create a type that makes the given keys optional.
112
112
  - [`SetRequired`](source/set-required.d.ts) - Create a type that makes the given keys required.
113
113
  - [`ValueOf`](source/value-of.d.ts) - Create a union of the given object's values, and optionally specify which keys to get the values from.
114
- - [`PromiseValue`](source/promise-value.d.ts) - Returns the type that is wrapped inside a `Promise`.
115
114
  - [`AsyncReturnType`](source/async-return-type.d.ts) - Unwrap the return type of a function that returns a `Promise`.
116
115
  - [`ConditionalKeys`](source/conditional-keys.d.ts) - Extract keys from a shape where values extend the given `Condition` type.
117
116
  - [`ConditionalPick`](source/conditional-pick.d.ts) - Like `Pick` except it selects properties from a shape where the values extend the given `Condition` type.
@@ -1,4 +1,6 @@
1
1
  /**
2
+ @deprecated Use the built-in [`Awaited` type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-5.html#the-awaited-type-and-promise-improvements) instead.
3
+
2
4
  Returns the type that is wrapped inside a `Promise` type.
3
5
  If the type is a nested Promise, it is unwrapped recursively until a non-Promise type is obtained.
4
6
  If the type is not a `Promise`, the type itself is returned.
@@ -15,6 +15,7 @@ declare namespace TsConfigJson {
15
15
  | 'ES6'
16
16
  | 'ES2015'
17
17
  | 'ES2020'
18
+ | 'ES2022'
18
19
  | 'ESNext'
19
20
  | 'None'
20
21
  // Lowercase alternatives
@@ -25,6 +26,7 @@ declare namespace TsConfigJson {
25
26
  | 'es6'
26
27
  | 'es2015'
27
28
  | 'es2020'
29
+ | 'es2022'
28
30
  | 'esnext'
29
31
  | 'none';
30
32