typescript 4.7.0-dev.20220228 → 4.7.0-dev.20220303
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.bigint.d.ts +3 -1
- package/lib/lib.es2020.d.ts +2 -0
- package/lib/lib.es2020.date.d.ts +44 -0
- package/lib/lib.es2020.intl.d.ts +7 -0
- package/lib/lib.es2020.number.d.ts +30 -0
- package/lib/tsc.js +871 -674
- package/lib/tsserver.js +1201 -1004
- package/lib/tsserverlibrary.d.ts +84 -66
- package/lib/tsserverlibrary.js +1201 -1004
- package/lib/typescript.d.ts +84 -66
- package/lib/typescript.js +1189 -992
- package/lib/typescriptServices.d.ts +84 -66
- package/lib/typescriptServices.js +1189 -992
- package/lib/typingsInstaller.js +1003 -807
- package/package.json +1 -1
|
@@ -18,6 +18,8 @@ and limitations under the License.
|
|
|
18
18
|
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
/// <reference lib="es2020.intl" />
|
|
22
|
+
|
|
21
23
|
interface BigIntToLocaleStringOptions {
|
|
22
24
|
/**
|
|
23
25
|
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
|
|
@@ -112,7 +114,7 @@ interface BigInt {
|
|
|
112
114
|
toString(radix?: number): string;
|
|
113
115
|
|
|
114
116
|
/** Returns a string representation appropriate to the host environment's current locale. */
|
|
115
|
-
toLocaleString(locales?:
|
|
117
|
+
toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;
|
|
116
118
|
|
|
117
119
|
/** Returns the primitive value of the specified object. */
|
|
118
120
|
valueOf(): bigint;
|
package/lib/lib.es2020.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ and limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
/// <reference lib="es2019" />
|
|
22
22
|
/// <reference lib="es2020.bigint" />
|
|
23
|
+
/// <reference lib="es2020.date" />
|
|
24
|
+
/// <reference lib="es2020.number" />
|
|
23
25
|
/// <reference lib="es2020.promise" />
|
|
24
26
|
/// <reference lib="es2020.sharedmemory" />
|
|
25
27
|
/// <reference lib="es2020.string" />
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/// <reference lib="es2020.intl" />
|
|
22
|
+
|
|
23
|
+
interface Date {
|
|
24
|
+
/**
|
|
25
|
+
* Converts a date and time to a string by using the current or specified locale.
|
|
26
|
+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
27
|
+
* @param options An object that contains one or more properties that specify comparison options.
|
|
28
|
+
*/
|
|
29
|
+
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Converts a date to a string by using the current or specified locale.
|
|
33
|
+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
34
|
+
* @param options An object that contains one or more properties that specify comparison options.
|
|
35
|
+
*/
|
|
36
|
+
toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Converts a time to a string by using the current or specified locale.
|
|
40
|
+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
41
|
+
* @param options An object that contains one or more properties that specify comparison options.
|
|
42
|
+
*/
|
|
43
|
+
toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
|
44
|
+
}
|
package/lib/lib.es2020.intl.d.ts
CHANGED
|
@@ -78,6 +78,13 @@ declare namespace Intl {
|
|
|
78
78
|
*/
|
|
79
79
|
type BCP47LanguageTag = string;
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* The locale(s) to use
|
|
83
|
+
*
|
|
84
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
|
|
85
|
+
*/
|
|
86
|
+
type LocalesArgument = UnicodeBCP47LocaleIdentifier | UnicodeBCP47LocaleIdentifier[] | Locale | Locale[] | undefined;
|
|
87
|
+
|
|
81
88
|
/**
|
|
82
89
|
* An object with some or all of properties of `options` parameter
|
|
83
90
|
* of `Intl.RelativeTimeFormat` constructor.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
5
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
|
|
7
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
11
|
+
|
|
12
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
|
+
and limitations under the License.
|
|
14
|
+
***************************************************************************** */
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/// <reference lib="es2020.intl" />
|
|
22
|
+
|
|
23
|
+
interface Number {
|
|
24
|
+
/**
|
|
25
|
+
* Converts a number to a string by using the current or specified locale.
|
|
26
|
+
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
|
|
27
|
+
* @param options An object that contains one or more properties that specify comparison options.
|
|
28
|
+
*/
|
|
29
|
+
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
30
|
+
}
|