@typescript-deploys/pr-build 4.9.0-pr-51065-26 → 4.9.0-pr-51144-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/lib/README.md +1 -1
- package/lib/cs/diagnosticMessages.generated.json +1 -1
- package/lib/de/diagnosticMessages.generated.json +1 -1
- package/lib/es/diagnosticMessages.generated.json +1 -1
- package/lib/fr/diagnosticMessages.generated.json +1 -1
- package/lib/it/diagnosticMessages.generated.json +1 -1
- package/lib/ja/diagnosticMessages.generated.json +1 -1
- package/lib/ko/diagnosticMessages.generated.json +1 -1
- package/lib/lib.d.ts +5 -5
- package/lib/lib.dom.d.ts +1 -1
- package/lib/lib.dom.iterable.d.ts +1 -1
- package/lib/lib.es2015.collection.d.ts +133 -133
- package/lib/lib.es2015.core.d.ts +542 -542
- package/lib/lib.es2015.d.ts +11 -11
- package/lib/lib.es2015.generator.d.ts +60 -60
- package/lib/lib.es2015.iterable.d.ts +481 -481
- package/lib/lib.es2015.promise.d.ts +64 -64
- package/lib/lib.es2015.proxy.d.ts +113 -113
- package/lib/lib.es2015.reflect.d.ts +129 -129
- package/lib/lib.es2015.symbol.d.ts +30 -30
- package/lib/lib.es2015.symbol.wellknown.d.ts +307 -307
- package/lib/lib.es2016.array.include.d.ts +100 -100
- package/lib/lib.es2016.d.ts +2 -2
- package/lib/lib.es2016.full.d.ts +5 -5
- package/lib/lib.es2017.d.ts +7 -7
- package/lib/lib.es2017.full.d.ts +5 -5
- package/lib/lib.es2017.intl.d.ts +30 -30
- package/lib/lib.es2017.object.d.ts +34 -34
- package/lib/lib.es2017.sharedmemory.d.ts +120 -120
- package/lib/lib.es2017.string.d.ts +30 -30
- package/lib/lib.es2017.typedarrays.d.ts +38 -38
- package/lib/lib.es2018.asyncgenerator.d.ts +60 -60
- package/lib/lib.es2018.asynciterable.d.ts +27 -27
- package/lib/lib.es2018.d.ts +7 -7
- package/lib/lib.es2018.full.d.ts +5 -5
- package/lib/lib.es2018.intl.d.ts +56 -56
- package/lib/lib.es2018.promise.d.ts +13 -13
- package/lib/lib.es2018.regexp.d.ts +21 -21
- package/lib/lib.es2019.array.d.ts +66 -66
- package/lib/lib.es2019.d.ts +7 -7
- package/lib/lib.es2019.full.d.ts +6 -6
- package/lib/lib.es2019.intl.d.ts +6 -6
- package/lib/lib.es2019.object.d.ts +18 -18
- package/lib/lib.es2019.string.d.ts +22 -22
- package/lib/lib.es2019.symbol.d.ts +7 -7
- package/lib/lib.es2020.bigint.d.ts +713 -713
- package/lib/lib.es2020.d.ts +10 -10
- package/lib/lib.es2020.date.d.ts +26 -26
- package/lib/lib.es2020.full.d.ts +6 -6
- package/lib/lib.es2020.intl.d.ts +416 -416
- package/lib/lib.es2020.number.d.ts +13 -13
- package/lib/lib.es2020.promise.d.ts +32 -32
- package/lib/lib.es2020.sharedmemory.d.ts +82 -82
- package/lib/lib.es2020.string.d.ts +13 -13
- package/lib/lib.es2020.symbol.wellknown.d.ts +22 -22
- package/lib/lib.es2021.d.ts +6 -6
- package/lib/lib.es2021.full.d.ts +6 -6
- package/lib/lib.es2021.intl.d.ts +137 -137
- package/lib/lib.es2021.promise.d.ts +33 -33
- package/lib/lib.es2021.string.d.ts +18 -18
- package/lib/lib.es2021.weakref.d.ts +58 -58
- package/lib/lib.es2022.array.d.ts +106 -106
- package/lib/lib.es2022.d.ts +8 -8
- package/lib/lib.es2022.error.d.ts +58 -58
- package/lib/lib.es2022.full.d.ts +6 -6
- package/lib/lib.es2022.intl.d.ts +94 -94
- package/lib/lib.es2022.object.d.ts +9 -9
- package/lib/lib.es2022.sharedmemory.d.ts +8 -8
- package/lib/lib.es2022.string.d.ts +8 -8
- package/lib/lib.es5.d.ts +4509 -4509
- package/lib/lib.es6.d.ts +6 -6
- package/lib/lib.esnext.d.ts +3 -3
- package/lib/lib.esnext.full.d.ts +5 -5
- package/lib/lib.esnext.intl.d.ts +13 -13
- package/lib/lib.scripthost.d.ts +310 -310
- package/lib/lib.webworker.d.ts +1 -1
- package/lib/lib.webworker.importscripts.d.ts +7 -7
- package/lib/lib.webworker.iterable.d.ts +1 -1
- package/lib/pl/diagnosticMessages.generated.json +1 -1
- package/lib/pt-br/diagnosticMessages.generated.json +1 -1
- package/lib/ru/diagnosticMessages.generated.json +1 -1
- package/lib/tr/diagnosticMessages.generated.json +1 -1
- package/lib/tsc.js +34 -18
- package/lib/tsserver.js +108 -43
- package/lib/tsserverlibrary.d.ts +15 -16
- package/lib/tsserverlibrary.js +108 -41
- package/lib/typescript.d.ts +2 -10
- package/lib/typescript.js +71 -31
- package/lib/typingsInstaller.js +26 -9
- package/lib/zh-cn/diagnosticMessages.generated.json +1 -1
- package/lib/zh-tw/diagnosticMessages.generated.json +1 -1
- package/package.json +16 -34
|
@@ -15,33 +15,33 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
interface String {
|
|
22
|
-
/**
|
|
23
|
-
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
|
|
24
|
-
* The padding is applied from the start (left) of the current string.
|
|
25
|
-
*
|
|
26
|
-
* @param maxLength The length of the resulting string once the current string has been padded.
|
|
27
|
-
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
|
|
28
|
-
*
|
|
29
|
-
* @param fillString The string to pad the current string with.
|
|
30
|
-
* If this string is too long, it will be truncated and the left-most part will be applied.
|
|
31
|
-
* The default value for this parameter is " " (U+0020).
|
|
32
|
-
*/
|
|
33
|
-
padStart(maxLength: number, fillString?: string): string;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
|
|
37
|
-
* The padding is applied from the end (right) of the current string.
|
|
38
|
-
*
|
|
39
|
-
* @param maxLength The length of the resulting string once the current string has been padded.
|
|
40
|
-
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
|
|
41
|
-
*
|
|
42
|
-
* @param fillString The string to pad the current string with.
|
|
43
|
-
* If this string is too long, it will be truncated and the left-most part will be applied.
|
|
44
|
-
* The default value for this parameter is " " (U+0020).
|
|
45
|
-
*/
|
|
46
|
-
padEnd(maxLength: number, fillString?: string): string;
|
|
47
|
-
}
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface String {
|
|
22
|
+
/**
|
|
23
|
+
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
|
|
24
|
+
* The padding is applied from the start (left) of the current string.
|
|
25
|
+
*
|
|
26
|
+
* @param maxLength The length of the resulting string once the current string has been padded.
|
|
27
|
+
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
|
|
28
|
+
*
|
|
29
|
+
* @param fillString The string to pad the current string with.
|
|
30
|
+
* If this string is too long, it will be truncated and the left-most part will be applied.
|
|
31
|
+
* The default value for this parameter is " " (U+0020).
|
|
32
|
+
*/
|
|
33
|
+
padStart(maxLength: number, fillString?: string): string;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
|
|
37
|
+
* The padding is applied from the end (right) of the current string.
|
|
38
|
+
*
|
|
39
|
+
* @param maxLength The length of the resulting string once the current string has been padded.
|
|
40
|
+
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
|
|
41
|
+
*
|
|
42
|
+
* @param fillString The string to pad the current string with.
|
|
43
|
+
* If this string is too long, it will be truncated and the left-most part will be applied.
|
|
44
|
+
* The default value for this parameter is " " (U+0020).
|
|
45
|
+
*/
|
|
46
|
+
padEnd(maxLength: number, fillString?: string): string;
|
|
47
|
+
}
|
|
@@ -15,41 +15,41 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
interface Int8ArrayConstructor {
|
|
22
|
-
new (): Int8Array;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface Uint8ArrayConstructor {
|
|
26
|
-
new (): Uint8Array;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
interface Uint8ClampedArrayConstructor {
|
|
30
|
-
new (): Uint8ClampedArray;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface Int16ArrayConstructor {
|
|
34
|
-
new (): Int16Array;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface Uint16ArrayConstructor {
|
|
38
|
-
new (): Uint16Array;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
interface Int32ArrayConstructor {
|
|
42
|
-
new (): Int32Array;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface Uint32ArrayConstructor {
|
|
46
|
-
new (): Uint32Array;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface Float32ArrayConstructor {
|
|
50
|
-
new (): Float32Array;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface Float64ArrayConstructor {
|
|
54
|
-
new (): Float64Array;
|
|
55
|
-
}
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface Int8ArrayConstructor {
|
|
22
|
+
new (): Int8Array;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface Uint8ArrayConstructor {
|
|
26
|
+
new (): Uint8Array;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
interface Uint8ClampedArrayConstructor {
|
|
30
|
+
new (): Uint8ClampedArray;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface Int16ArrayConstructor {
|
|
34
|
+
new (): Int16Array;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface Uint16ArrayConstructor {
|
|
38
|
+
new (): Uint16Array;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface Int32ArrayConstructor {
|
|
42
|
+
new (): Int32Array;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface Uint32ArrayConstructor {
|
|
46
|
+
new (): Uint32Array;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface Float32ArrayConstructor {
|
|
50
|
+
new (): Float32Array;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface Float64ArrayConstructor {
|
|
54
|
+
new (): Float64Array;
|
|
55
|
+
}
|
|
@@ -15,65 +15,65 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
/// <reference lib="es2018.asynciterable" />
|
|
22
|
-
|
|
23
|
-
interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
|
|
24
|
-
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
25
|
-
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
|
|
26
|
-
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
|
|
27
|
-
throw(e: any): Promise<IteratorResult<T, TReturn>>;
|
|
28
|
-
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface AsyncGeneratorFunction {
|
|
32
|
-
/**
|
|
33
|
-
* Creates a new AsyncGenerator object.
|
|
34
|
-
* @param args A list of arguments the function accepts.
|
|
35
|
-
*/
|
|
36
|
-
new (...args: any[]): AsyncGenerator;
|
|
37
|
-
/**
|
|
38
|
-
* Creates a new AsyncGenerator object.
|
|
39
|
-
* @param args A list of arguments the function accepts.
|
|
40
|
-
*/
|
|
41
|
-
(...args: any[]): AsyncGenerator;
|
|
42
|
-
/**
|
|
43
|
-
* The length of the arguments.
|
|
44
|
-
*/
|
|
45
|
-
readonly length: number;
|
|
46
|
-
/**
|
|
47
|
-
* Returns the name of the function.
|
|
48
|
-
*/
|
|
49
|
-
readonly name: string;
|
|
50
|
-
/**
|
|
51
|
-
* A reference to the prototype.
|
|
52
|
-
*/
|
|
53
|
-
readonly prototype: AsyncGenerator;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
interface AsyncGeneratorFunctionConstructor {
|
|
57
|
-
/**
|
|
58
|
-
* Creates a new AsyncGenerator function.
|
|
59
|
-
* @param args A list of arguments the function accepts.
|
|
60
|
-
*/
|
|
61
|
-
new (...args: string[]): AsyncGeneratorFunction;
|
|
62
|
-
/**
|
|
63
|
-
* Creates a new AsyncGenerator function.
|
|
64
|
-
* @param args A list of arguments the function accepts.
|
|
65
|
-
*/
|
|
66
|
-
(...args: string[]): AsyncGeneratorFunction;
|
|
67
|
-
/**
|
|
68
|
-
* The length of the arguments.
|
|
69
|
-
*/
|
|
70
|
-
readonly length: number;
|
|
71
|
-
/**
|
|
72
|
-
* Returns the name of the function.
|
|
73
|
-
*/
|
|
74
|
-
readonly name: string;
|
|
75
|
-
/**
|
|
76
|
-
* A reference to the prototype.
|
|
77
|
-
*/
|
|
78
|
-
readonly prototype: AsyncGeneratorFunction;
|
|
79
|
-
}
|
|
21
|
+
/// <reference lib="es2018.asynciterable" />
|
|
22
|
+
|
|
23
|
+
interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
|
|
24
|
+
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
25
|
+
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
|
|
26
|
+
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
|
|
27
|
+
throw(e: any): Promise<IteratorResult<T, TReturn>>;
|
|
28
|
+
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface AsyncGeneratorFunction {
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new AsyncGenerator object.
|
|
34
|
+
* @param args A list of arguments the function accepts.
|
|
35
|
+
*/
|
|
36
|
+
new (...args: any[]): AsyncGenerator;
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new AsyncGenerator object.
|
|
39
|
+
* @param args A list of arguments the function accepts.
|
|
40
|
+
*/
|
|
41
|
+
(...args: any[]): AsyncGenerator;
|
|
42
|
+
/**
|
|
43
|
+
* The length of the arguments.
|
|
44
|
+
*/
|
|
45
|
+
readonly length: number;
|
|
46
|
+
/**
|
|
47
|
+
* Returns the name of the function.
|
|
48
|
+
*/
|
|
49
|
+
readonly name: string;
|
|
50
|
+
/**
|
|
51
|
+
* A reference to the prototype.
|
|
52
|
+
*/
|
|
53
|
+
readonly prototype: AsyncGenerator;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface AsyncGeneratorFunctionConstructor {
|
|
57
|
+
/**
|
|
58
|
+
* Creates a new AsyncGenerator function.
|
|
59
|
+
* @param args A list of arguments the function accepts.
|
|
60
|
+
*/
|
|
61
|
+
new (...args: string[]): AsyncGeneratorFunction;
|
|
62
|
+
/**
|
|
63
|
+
* Creates a new AsyncGenerator function.
|
|
64
|
+
* @param args A list of arguments the function accepts.
|
|
65
|
+
*/
|
|
66
|
+
(...args: string[]): AsyncGeneratorFunction;
|
|
67
|
+
/**
|
|
68
|
+
* The length of the arguments.
|
|
69
|
+
*/
|
|
70
|
+
readonly length: number;
|
|
71
|
+
/**
|
|
72
|
+
* Returns the name of the function.
|
|
73
|
+
*/
|
|
74
|
+
readonly name: string;
|
|
75
|
+
/**
|
|
76
|
+
* A reference to the prototype.
|
|
77
|
+
*/
|
|
78
|
+
readonly prototype: AsyncGeneratorFunction;
|
|
79
|
+
}
|
|
@@ -15,31 +15,31 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/// <reference lib="es2015.symbol" />
|
|
22
|
-
/// <reference lib="es2015.iterable" />
|
|
23
|
-
|
|
24
|
-
interface SymbolConstructor {
|
|
25
|
-
/**
|
|
26
|
-
* A method that returns the default async iterator for an object. Called by the semantics of
|
|
27
|
-
* the for-await-of statement.
|
|
28
|
-
*/
|
|
29
|
-
readonly asyncIterator: unique symbol;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
|
|
33
|
-
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
34
|
-
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
|
|
35
|
-
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
|
|
36
|
-
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
interface AsyncIterable<T> {
|
|
40
|
-
[Symbol.asyncIterator](): AsyncIterator<T>;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
|
|
44
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/// <reference lib="es2015.symbol" />
|
|
22
|
+
/// <reference lib="es2015.iterable" />
|
|
23
|
+
|
|
24
|
+
interface SymbolConstructor {
|
|
25
|
+
/**
|
|
26
|
+
* A method that returns the default async iterator for an object. Called by the semantics of
|
|
27
|
+
* the for-await-of statement.
|
|
28
|
+
*/
|
|
29
|
+
readonly asyncIterator: unique symbol;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
|
|
33
|
+
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
|
|
34
|
+
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
|
|
35
|
+
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
|
|
36
|
+
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface AsyncIterable<T> {
|
|
40
|
+
[Symbol.asyncIterator](): AsyncIterator<T>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
|
|
44
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
|
|
45
45
|
}
|
package/lib/lib.es2018.d.ts
CHANGED
|
@@ -15,12 +15,12 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
/// <reference lib="es2017" />
|
|
22
|
-
/// <reference lib="es2018.asynciterable" />
|
|
23
|
-
/// <reference lib="es2018.asyncgenerator" />
|
|
24
|
-
/// <reference lib="es2018.promise" />
|
|
25
|
-
/// <reference lib="es2018.regexp" />
|
|
26
|
-
/// <reference lib="es2018.intl" />
|
|
21
|
+
/// <reference lib="es2017" />
|
|
22
|
+
/// <reference lib="es2018.asynciterable" />
|
|
23
|
+
/// <reference lib="es2018.asyncgenerator" />
|
|
24
|
+
/// <reference lib="es2018.promise" />
|
|
25
|
+
/// <reference lib="es2018.regexp" />
|
|
26
|
+
/// <reference lib="es2018.intl" />
|
package/lib/lib.es2018.full.d.ts
CHANGED
|
@@ -15,11 +15,11 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
/// <reference lib="es2018" />
|
|
22
|
-
/// <reference lib="dom" />
|
|
23
|
-
/// <reference lib="webworker.importscripts" />
|
|
24
|
-
/// <reference lib="scripthost" />
|
|
21
|
+
/// <reference lib="es2018" />
|
|
22
|
+
/// <reference lib="dom" />
|
|
23
|
+
/// <reference lib="webworker.importscripts" />
|
|
24
|
+
/// <reference lib="scripthost" />
|
|
25
25
|
/// <reference lib="dom.iterable" />
|
package/lib/lib.es2018.intl.d.ts
CHANGED
|
@@ -15,59 +15,59 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
declare namespace Intl {
|
|
22
|
-
|
|
23
|
-
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
|
|
24
|
-
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
|
|
25
|
-
type PluralRuleType = "cardinal" | "ordinal";
|
|
26
|
-
|
|
27
|
-
interface PluralRulesOptions {
|
|
28
|
-
localeMatcher?: "lookup" | "best fit" | undefined;
|
|
29
|
-
type?: PluralRuleType | undefined;
|
|
30
|
-
minimumIntegerDigits?: number | undefined;
|
|
31
|
-
minimumFractionDigits?: number | undefined;
|
|
32
|
-
maximumFractionDigits?: number | undefined;
|
|
33
|
-
minimumSignificantDigits?: number | undefined;
|
|
34
|
-
maximumSignificantDigits?: number | undefined;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
interface ResolvedPluralRulesOptions {
|
|
38
|
-
locale: string;
|
|
39
|
-
pluralCategories: LDMLPluralRule[];
|
|
40
|
-
type: PluralRuleType;
|
|
41
|
-
minimumIntegerDigits: number;
|
|
42
|
-
minimumFractionDigits: number;
|
|
43
|
-
maximumFractionDigits: number;
|
|
44
|
-
minimumSignificantDigits?: number;
|
|
45
|
-
maximumSignificantDigits?: number;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
interface PluralRules {
|
|
49
|
-
resolvedOptions(): ResolvedPluralRulesOptions;
|
|
50
|
-
select(n: number): LDMLPluralRule;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const PluralRules: {
|
|
54
|
-
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
55
|
-
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
56
|
-
|
|
57
|
-
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
|
61
|
-
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
|
|
62
|
-
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
|
|
63
|
-
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
|
|
64
|
-
|
|
65
|
-
interface NumberFormatPart {
|
|
66
|
-
type: NumberFormatPartTypes;
|
|
67
|
-
value: string;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
interface NumberFormat {
|
|
71
|
-
formatToParts(number?: number | bigint): NumberFormatPart[];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
declare namespace Intl {
|
|
22
|
+
|
|
23
|
+
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
|
|
24
|
+
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
|
|
25
|
+
type PluralRuleType = "cardinal" | "ordinal";
|
|
26
|
+
|
|
27
|
+
interface PluralRulesOptions {
|
|
28
|
+
localeMatcher?: "lookup" | "best fit" | undefined;
|
|
29
|
+
type?: PluralRuleType | undefined;
|
|
30
|
+
minimumIntegerDigits?: number | undefined;
|
|
31
|
+
minimumFractionDigits?: number | undefined;
|
|
32
|
+
maximumFractionDigits?: number | undefined;
|
|
33
|
+
minimumSignificantDigits?: number | undefined;
|
|
34
|
+
maximumSignificantDigits?: number | undefined;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface ResolvedPluralRulesOptions {
|
|
38
|
+
locale: string;
|
|
39
|
+
pluralCategories: LDMLPluralRule[];
|
|
40
|
+
type: PluralRuleType;
|
|
41
|
+
minimumIntegerDigits: number;
|
|
42
|
+
minimumFractionDigits: number;
|
|
43
|
+
maximumFractionDigits: number;
|
|
44
|
+
minimumSignificantDigits?: number;
|
|
45
|
+
maximumSignificantDigits?: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface PluralRules {
|
|
49
|
+
resolvedOptions(): ResolvedPluralRulesOptions;
|
|
50
|
+
select(n: number): LDMLPluralRule;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const PluralRules: {
|
|
54
|
+
new (locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
55
|
+
(locales?: string | string[], options?: PluralRulesOptions): PluralRules;
|
|
56
|
+
|
|
57
|
+
supportedLocalesOf(locales: string | string[], options?: { localeMatcher?: "lookup" | "best fit" }): string[];
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
|
|
61
|
+
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
|
|
62
|
+
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
|
|
63
|
+
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
|
|
64
|
+
|
|
65
|
+
interface NumberFormatPart {
|
|
66
|
+
type: NumberFormatPartTypes;
|
|
67
|
+
value: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
interface NumberFormat {
|
|
71
|
+
formatToParts(number?: number | bigint): NumberFormatPart[];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -15,18 +15,18 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* Represents the completion of an asynchronous operation
|
|
23
|
-
*/
|
|
24
|
-
interface Promise<T> {
|
|
25
|
-
/**
|
|
26
|
-
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
27
|
-
* resolved value cannot be modified from the callback.
|
|
28
|
-
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
29
|
-
* @returns A Promise for the completion of the callback.
|
|
30
|
-
*/
|
|
31
|
-
finally(onfinally?: (() => void) | undefined | null): Promise<T>
|
|
32
|
-
}
|
|
21
|
+
/**
|
|
22
|
+
* Represents the completion of an asynchronous operation
|
|
23
|
+
*/
|
|
24
|
+
interface Promise<T> {
|
|
25
|
+
/**
|
|
26
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
27
|
+
* resolved value cannot be modified from the callback.
|
|
28
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
29
|
+
* @returns A Promise for the completion of the callback.
|
|
30
|
+
*/
|
|
31
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>
|
|
32
|
+
}
|
|
@@ -15,25 +15,25 @@ and limitations under the License.
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
/// <reference no-default-lib="true"/>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
interface RegExpMatchArray {
|
|
22
|
-
groups?: {
|
|
23
|
-
[key: string]: string
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface RegExpExecArray {
|
|
28
|
-
groups?: {
|
|
29
|
-
[key: string]: string
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
interface RegExp {
|
|
34
|
-
/**
|
|
35
|
-
* Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
|
|
36
|
-
* Default is false. Read-only.
|
|
37
|
-
*/
|
|
38
|
-
readonly dotAll: boolean;
|
|
18
|
+
/// <reference no-default-lib="true"/>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
interface RegExpMatchArray {
|
|
22
|
+
groups?: {
|
|
23
|
+
[key: string]: string
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface RegExpExecArray {
|
|
28
|
+
groups?: {
|
|
29
|
+
[key: string]: string
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface RegExp {
|
|
34
|
+
/**
|
|
35
|
+
* Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
|
|
36
|
+
* Default is false. Read-only.
|
|
37
|
+
*/
|
|
38
|
+
readonly dotAll: boolean;
|
|
39
39
|
}
|