@typescript/native-preview-darwin-arm64 7.0.0-dev.20250522.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.
Files changed (101) hide show
  1. package/LICENSE +55 -0
  2. package/NOTICE.txt +297 -0
  3. package/README.md +3 -0
  4. package/lib/lib.d.ts +22 -0
  5. package/lib/lib.decorators.d.ts +386 -0
  6. package/lib/lib.decorators.legacy.d.ts +22 -0
  7. package/lib/lib.dom.asynciterable.d.ts +41 -0
  8. package/lib/lib.dom.d.ts +28087 -0
  9. package/lib/lib.dom.iterable.d.ts +491 -0
  10. package/lib/lib.es2015.collection.d.ts +147 -0
  11. package/lib/lib.es2015.core.d.ts +597 -0
  12. package/lib/lib.es2015.d.ts +28 -0
  13. package/lib/lib.es2015.generator.d.ts +77 -0
  14. package/lib/lib.es2015.iterable.d.ts +590 -0
  15. package/lib/lib.es2015.promise.d.ts +81 -0
  16. package/lib/lib.es2015.proxy.d.ts +128 -0
  17. package/lib/lib.es2015.reflect.d.ts +144 -0
  18. package/lib/lib.es2015.symbol.d.ts +46 -0
  19. package/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  20. package/lib/lib.es2016.array.include.d.ts +116 -0
  21. package/lib/lib.es2016.d.ts +21 -0
  22. package/lib/lib.es2016.full.d.ts +23 -0
  23. package/lib/lib.es2016.intl.d.ts +31 -0
  24. package/lib/lib.es2017.arraybuffer.d.ts +21 -0
  25. package/lib/lib.es2017.d.ts +26 -0
  26. package/lib/lib.es2017.date.d.ts +31 -0
  27. package/lib/lib.es2017.full.d.ts +23 -0
  28. package/lib/lib.es2017.intl.d.ts +44 -0
  29. package/lib/lib.es2017.object.d.ts +49 -0
  30. package/lib/lib.es2017.sharedmemory.d.ts +135 -0
  31. package/lib/lib.es2017.string.d.ts +45 -0
  32. package/lib/lib.es2017.typedarrays.d.ts +53 -0
  33. package/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  34. package/lib/lib.es2018.asynciterable.d.ts +53 -0
  35. package/lib/lib.es2018.d.ts +24 -0
  36. package/lib/lib.es2018.full.d.ts +24 -0
  37. package/lib/lib.es2018.intl.d.ts +83 -0
  38. package/lib/lib.es2018.promise.d.ts +30 -0
  39. package/lib/lib.es2018.regexp.d.ts +37 -0
  40. package/lib/lib.es2019.array.d.ts +79 -0
  41. package/lib/lib.es2019.d.ts +24 -0
  42. package/lib/lib.es2019.full.d.ts +24 -0
  43. package/lib/lib.es2019.intl.d.ts +23 -0
  44. package/lib/lib.es2019.object.d.ts +33 -0
  45. package/lib/lib.es2019.string.d.ts +37 -0
  46. package/lib/lib.es2019.symbol.d.ts +24 -0
  47. package/lib/lib.es2020.bigint.d.ts +729 -0
  48. package/lib/lib.es2020.d.ts +27 -0
  49. package/lib/lib.es2020.date.d.ts +42 -0
  50. package/lib/lib.es2020.full.d.ts +24 -0
  51. package/lib/lib.es2020.intl.d.ts +474 -0
  52. package/lib/lib.es2020.number.d.ts +28 -0
  53. package/lib/lib.es2020.promise.d.ts +47 -0
  54. package/lib/lib.es2020.sharedmemory.d.ts +99 -0
  55. package/lib/lib.es2020.string.d.ts +44 -0
  56. package/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  57. package/lib/lib.es2021.d.ts +23 -0
  58. package/lib/lib.es2021.full.d.ts +24 -0
  59. package/lib/lib.es2021.intl.d.ts +166 -0
  60. package/lib/lib.es2021.promise.d.ts +48 -0
  61. package/lib/lib.es2021.string.d.ts +33 -0
  62. package/lib/lib.es2021.weakref.d.ts +78 -0
  63. package/lib/lib.es2022.array.d.ts +121 -0
  64. package/lib/lib.es2022.d.ts +25 -0
  65. package/lib/lib.es2022.error.d.ts +75 -0
  66. package/lib/lib.es2022.full.d.ts +24 -0
  67. package/lib/lib.es2022.intl.d.ts +121 -0
  68. package/lib/lib.es2022.object.d.ts +26 -0
  69. package/lib/lib.es2022.regexp.d.ts +39 -0
  70. package/lib/lib.es2022.string.d.ts +25 -0
  71. package/lib/lib.es2023.array.d.ts +924 -0
  72. package/lib/lib.es2023.collection.d.ts +21 -0
  73. package/lib/lib.es2023.d.ts +22 -0
  74. package/lib/lib.es2023.full.d.ts +24 -0
  75. package/lib/lib.es2023.intl.d.ts +56 -0
  76. package/lib/lib.es2024.arraybuffer.d.ts +65 -0
  77. package/lib/lib.es2024.collection.d.ts +29 -0
  78. package/lib/lib.es2024.d.ts +26 -0
  79. package/lib/lib.es2024.full.d.ts +24 -0
  80. package/lib/lib.es2024.object.d.ts +29 -0
  81. package/lib/lib.es2024.promise.d.ts +35 -0
  82. package/lib/lib.es2024.regexp.d.ts +25 -0
  83. package/lib/lib.es2024.sharedmemory.d.ts +68 -0
  84. package/lib/lib.es2024.string.d.ts +29 -0
  85. package/lib/lib.es5.d.ts +4585 -0
  86. package/lib/lib.es6.d.ts +23 -0
  87. package/lib/lib.esnext.array.d.ts +35 -0
  88. package/lib/lib.esnext.collection.d.ts +96 -0
  89. package/lib/lib.esnext.d.ts +25 -0
  90. package/lib/lib.esnext.decorators.d.ts +28 -0
  91. package/lib/lib.esnext.disposable.d.ts +193 -0
  92. package/lib/lib.esnext.full.d.ts +24 -0
  93. package/lib/lib.esnext.intl.d.ts +21 -0
  94. package/lib/lib.esnext.iterator.d.ts +148 -0
  95. package/lib/lib.scripthost.d.ts +322 -0
  96. package/lib/lib.webworker.asynciterable.d.ts +41 -0
  97. package/lib/lib.webworker.d.ts +9410 -0
  98. package/lib/lib.webworker.importscripts.d.ts +23 -0
  99. package/lib/lib.webworker.iterable.d.ts +288 -0
  100. package/lib/tsgo +0 -0
  101. package/package.json +41 -0
@@ -0,0 +1,77 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2018.asynciterable" />
20
+
21
+ interface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
22
+ // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
23
+ next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
24
+ return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
25
+ throw(e: any): Promise<IteratorResult<T, TReturn>>;
26
+ [Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
27
+ }
28
+
29
+ interface AsyncGeneratorFunction {
30
+ /**
31
+ * Creates a new AsyncGenerator object.
32
+ * @param args A list of arguments the function accepts.
33
+ */
34
+ new (...args: any[]): AsyncGenerator;
35
+ /**
36
+ * Creates a new AsyncGenerator object.
37
+ * @param args A list of arguments the function accepts.
38
+ */
39
+ (...args: any[]): AsyncGenerator;
40
+ /**
41
+ * The length of the arguments.
42
+ */
43
+ readonly length: number;
44
+ /**
45
+ * Returns the name of the function.
46
+ */
47
+ readonly name: string;
48
+ /**
49
+ * A reference to the prototype.
50
+ */
51
+ readonly prototype: AsyncGenerator;
52
+ }
53
+
54
+ interface AsyncGeneratorFunctionConstructor {
55
+ /**
56
+ * Creates a new AsyncGenerator function.
57
+ * @param args A list of arguments the function accepts.
58
+ */
59
+ new (...args: string[]): AsyncGeneratorFunction;
60
+ /**
61
+ * Creates a new AsyncGenerator function.
62
+ * @param args A list of arguments the function accepts.
63
+ */
64
+ (...args: string[]): AsyncGeneratorFunction;
65
+ /**
66
+ * The length of the arguments.
67
+ */
68
+ readonly length: number;
69
+ /**
70
+ * Returns the name of the function.
71
+ */
72
+ readonly name: string;
73
+ /**
74
+ * A reference to the prototype.
75
+ */
76
+ readonly prototype: AsyncGeneratorFunction;
77
+ }
@@ -0,0 +1,53 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2015.symbol" />
20
+ /// <reference lib="es2015.iterable" />
21
+
22
+ interface SymbolConstructor {
23
+ /**
24
+ * A method that returns the default async iterator for an object. Called by the semantics of
25
+ * the for-await-of statement.
26
+ */
27
+ readonly asyncIterator: unique symbol;
28
+ }
29
+
30
+ interface AsyncIterator<T, TReturn = any, TNext = any> {
31
+ // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
32
+ next(...[value]: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
33
+ return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
34
+ throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
35
+ }
36
+
37
+ interface AsyncIterable<T, TReturn = any, TNext = any> {
38
+ [Symbol.asyncIterator](): AsyncIterator<T, TReturn, TNext>;
39
+ }
40
+
41
+ /**
42
+ * Describes a user-defined {@link AsyncIterator} that is also async iterable.
43
+ */
44
+ interface AsyncIterableIterator<T, TReturn = any, TNext = any> extends AsyncIterator<T, TReturn, TNext> {
45
+ [Symbol.asyncIterator](): AsyncIterableIterator<T, TReturn, TNext>;
46
+ }
47
+
48
+ /**
49
+ * Describes an {@link AsyncIterator} produced by the runtime that inherits from the intrinsic `AsyncIterator.prototype`.
50
+ */
51
+ interface AsyncIteratorObject<T, TReturn = unknown, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
52
+ [Symbol.asyncIterator](): AsyncIteratorObject<T, TReturn, TNext>;
53
+ }
@@ -0,0 +1,24 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2017" />
20
+ /// <reference lib="es2018.asynciterable" />
21
+ /// <reference lib="es2018.asyncgenerator" />
22
+ /// <reference lib="es2018.promise" />
23
+ /// <reference lib="es2018.regexp" />
24
+ /// <reference lib="es2018.intl" />
@@ -0,0 +1,24 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2018" />
20
+ /// <reference lib="dom" />
21
+ /// <reference lib="webworker.importscripts" />
22
+ /// <reference lib="scripthost" />
23
+ /// <reference lib="dom.iterable" />
24
+ /// <reference lib="dom.asynciterable" />
@@ -0,0 +1,83 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ declare namespace Intl {
20
+ // http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
21
+ type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
22
+ type PluralRuleType = "cardinal" | "ordinal";
23
+
24
+ interface PluralRulesOptions {
25
+ localeMatcher?: "lookup" | "best fit" | undefined;
26
+ type?: PluralRuleType | undefined;
27
+ minimumIntegerDigits?: number | undefined;
28
+ minimumFractionDigits?: number | undefined;
29
+ maximumFractionDigits?: number | undefined;
30
+ minimumSignificantDigits?: number | undefined;
31
+ maximumSignificantDigits?: number | undefined;
32
+ }
33
+
34
+ interface ResolvedPluralRulesOptions {
35
+ locale: string;
36
+ pluralCategories: LDMLPluralRule[];
37
+ type: PluralRuleType;
38
+ minimumIntegerDigits: number;
39
+ minimumFractionDigits: number;
40
+ maximumFractionDigits: number;
41
+ minimumSignificantDigits?: number;
42
+ maximumSignificantDigits?: number;
43
+ }
44
+
45
+ interface PluralRules {
46
+ resolvedOptions(): ResolvedPluralRulesOptions;
47
+ select(n: number): LDMLPluralRule;
48
+ }
49
+
50
+ interface PluralRulesConstructor {
51
+ new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
52
+ (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
53
+ supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
54
+ }
55
+
56
+ const PluralRules: PluralRulesConstructor;
57
+
58
+ interface NumberFormatPartTypeRegistry {
59
+ literal: never;
60
+ nan: never;
61
+ infinity: never;
62
+ percent: never;
63
+ integer: never;
64
+ group: never;
65
+ decimal: never;
66
+ fraction: never;
67
+ plusSign: never;
68
+ minusSign: never;
69
+ percentSign: never;
70
+ currency: never;
71
+ }
72
+
73
+ type NumberFormatPartTypes = keyof NumberFormatPartTypeRegistry;
74
+
75
+ interface NumberFormatPart {
76
+ type: NumberFormatPartTypes;
77
+ value: string;
78
+ }
79
+
80
+ interface NumberFormat {
81
+ formatToParts(number?: number | bigint): NumberFormatPart[];
82
+ }
83
+ }
@@ -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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /**
20
+ * Represents the completion of an asynchronous operation
21
+ */
22
+ interface Promise<T> {
23
+ /**
24
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
25
+ * resolved value cannot be modified from the callback.
26
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
27
+ * @returns A Promise for the completion of the callback.
28
+ */
29
+ finally(onfinally?: (() => void) | undefined | null): Promise<T>;
30
+ }
@@ -0,0 +1,37 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface RegExpMatchArray {
20
+ groups?: {
21
+ [key: string]: string;
22
+ };
23
+ }
24
+
25
+ interface RegExpExecArray {
26
+ groups?: {
27
+ [key: string]: string;
28
+ };
29
+ }
30
+
31
+ interface RegExp {
32
+ /**
33
+ * Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
34
+ * Default is false. Read-only.
35
+ */
36
+ readonly dotAll: boolean;
37
+ }
@@ -0,0 +1,79 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ type FlatArray<Arr, Depth extends number> = {
20
+ done: Arr;
21
+ recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
22
+ : Arr;
23
+ }[Depth extends -1 ? "done" : "recur"];
24
+
25
+ interface ReadonlyArray<T> {
26
+ /**
27
+ * Calls a defined callback function on each element of an array. Then, flattens the result into
28
+ * a new array.
29
+ * This is identical to a map followed by flat with depth 1.
30
+ *
31
+ * @param callback A function that accepts up to three arguments. The flatMap method calls the
32
+ * callback function one time for each element in the array.
33
+ * @param thisArg An object to which the this keyword can refer in the callback function. If
34
+ * thisArg is omitted, undefined is used as the this value.
35
+ */
36
+ flatMap<U, This = undefined>(
37
+ callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
38
+ thisArg?: This,
39
+ ): U[];
40
+
41
+ /**
42
+ * Returns a new array with all sub-array elements concatenated into it recursively up to the
43
+ * specified depth.
44
+ *
45
+ * @param depth The maximum recursion depth
46
+ */
47
+ flat<A, D extends number = 1>(
48
+ this: A,
49
+ depth?: D,
50
+ ): FlatArray<A, D>[];
51
+ }
52
+
53
+ interface Array<T> {
54
+ /**
55
+ * Calls a defined callback function on each element of an array. Then, flattens the result into
56
+ * a new array.
57
+ * This is identical to a map followed by flat with depth 1.
58
+ *
59
+ * @param callback A function that accepts up to three arguments. The flatMap method calls the
60
+ * callback function one time for each element in the array.
61
+ * @param thisArg An object to which the this keyword can refer in the callback function. If
62
+ * thisArg is omitted, undefined is used as the this value.
63
+ */
64
+ flatMap<U, This = undefined>(
65
+ callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
66
+ thisArg?: This,
67
+ ): U[];
68
+
69
+ /**
70
+ * Returns a new array with all sub-array elements concatenated into it recursively up to the
71
+ * specified depth.
72
+ *
73
+ * @param depth The maximum recursion depth
74
+ */
75
+ flat<A, D extends number = 1>(
76
+ this: A,
77
+ depth?: D,
78
+ ): FlatArray<A, D>[];
79
+ }
@@ -0,0 +1,24 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2018" />
20
+ /// <reference lib="es2019.array" />
21
+ /// <reference lib="es2019.object" />
22
+ /// <reference lib="es2019.string" />
23
+ /// <reference lib="es2019.symbol" />
24
+ /// <reference lib="es2019.intl" />
@@ -0,0 +1,24 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2019" />
20
+ /// <reference lib="dom" />
21
+ /// <reference lib="webworker.importscripts" />
22
+ /// <reference lib="scripthost" />
23
+ /// <reference lib="dom.iterable" />
24
+ /// <reference lib="dom.asynciterable" />
@@ -0,0 +1,23 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ declare namespace Intl {
20
+ interface DateTimeFormatPartTypesRegistry {
21
+ unknown: never;
22
+ }
23
+ }
@@ -0,0 +1,33 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ /// <reference lib="es2015.iterable" />
20
+
21
+ interface ObjectConstructor {
22
+ /**
23
+ * Returns an object created by key-value entries for properties and methods
24
+ * @param entries An iterable object that contains key-value entries for properties and methods.
25
+ */
26
+ fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; };
27
+
28
+ /**
29
+ * Returns an object created by key-value entries for properties and methods
30
+ * @param entries An iterable object that contains key-value entries for properties and methods.
31
+ */
32
+ fromEntries(entries: Iterable<readonly any[]>): any;
33
+ }
@@ -0,0 +1,37 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface String {
20
+ /** Removes the trailing white space and line terminator characters from a string. */
21
+ trimEnd(): string;
22
+
23
+ /** Removes the leading white space and line terminator characters from a string. */
24
+ trimStart(): string;
25
+
26
+ /**
27
+ * Removes the leading white space and line terminator characters from a string.
28
+ * @deprecated A legacy feature for browser compatibility. Use `trimStart` instead
29
+ */
30
+ trimLeft(): string;
31
+
32
+ /**
33
+ * Removes the trailing white space and line terminator characters from a string.
34
+ * @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead
35
+ */
36
+ trimRight(): string;
37
+ }
@@ -0,0 +1,24 @@
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
+ /// <reference no-default-lib="true"/>
18
+
19
+ interface Symbol {
20
+ /**
21
+ * Expose the [[Description]] internal slot of a symbol directly.
22
+ */
23
+ readonly description: string | undefined;
24
+ }