@typescript-deploys/pr-build 4.6.0-pr-47000-3 → 4.6.0-pr-47126-2

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.
@@ -297,6 +297,7 @@ declare namespace Intl {
297
297
  };
298
298
 
299
299
  interface DisplayNamesOptions {
300
+ locale: UnicodeBCP47LocaleIdentifier;
300
301
  localeMatcher: RelativeTimeFormatLocaleMatcher;
301
302
  style: RelativeTimeFormatStyle;
302
303
  type: "language" | "region" | "script" | "currency";
@@ -319,7 +320,7 @@ declare namespace Intl {
319
320
  *
320
321
  * [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
321
322
  */
322
- of(code: string): string;
323
+ of(code: string): string | undefined;
323
324
  /**
324
325
  * Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
325
326
  * [`Intl/DisplayNames`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
package/lib/lib.es5.d.ts CHANGED
@@ -1515,7 +1515,7 @@ interface Promise<T> {
1515
1515
  type Awaited<T> =
1516
1516
  T extends null | undefined ? T : // special case for `null | undefined` when not in `--strictNullChecks` mode
1517
1517
  T extends object & { then(onfulfilled: infer F): any } ? // `await` only unwraps object types with a callable `then`. Non-object types are not unwrapped
1518
- F extends ((value: infer V) => any) ? // if the argument to `then` is callable, extracts the argument
1518
+ F extends ((value: infer V, ...args: any) => any) ? // if the argument to `then` is callable, extracts the first argument
1519
1519
  Awaited<V> : // recursively unwrap the value
1520
1520
  never : // the argument to `then` was not callable
1521
1521
  T; // non-object or non-thenable