@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.
- package/lib/lib.es2020.intl.d.ts +2 -1
- package/lib/lib.es5.d.ts +1 -1
- package/lib/tsc.js +331 -141
- package/lib/tsserver.js +499 -215
- package/lib/tsserverlibrary.d.ts +11 -5
- package/lib/tsserverlibrary.js +470 -214
- package/lib/typescript.d.ts +10 -5
- package/lib/typescript.js +466 -213
- package/lib/typescriptServices.d.ts +10 -5
- package/lib/typescriptServices.js +466 -213
- package/lib/typingsInstaller.js +399 -173
- package/package.json +2 -1
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -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
|