@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,121 @@
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 Array<T> {
20
+ /**
21
+ * Returns the item located at the specified index.
22
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
23
+ */
24
+ at(index: number): T | undefined;
25
+ }
26
+
27
+ interface ReadonlyArray<T> {
28
+ /**
29
+ * Returns the item located at the specified index.
30
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
31
+ */
32
+ at(index: number): T | undefined;
33
+ }
34
+
35
+ interface Int8Array<TArrayBuffer extends ArrayBufferLike> {
36
+ /**
37
+ * Returns the item located at the specified index.
38
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
39
+ */
40
+ at(index: number): number | undefined;
41
+ }
42
+
43
+ interface Uint8Array<TArrayBuffer extends ArrayBufferLike> {
44
+ /**
45
+ * Returns the item located at the specified index.
46
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
47
+ */
48
+ at(index: number): number | undefined;
49
+ }
50
+
51
+ interface Uint8ClampedArray<TArrayBuffer extends ArrayBufferLike> {
52
+ /**
53
+ * Returns the item located at the specified index.
54
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
55
+ */
56
+ at(index: number): number | undefined;
57
+ }
58
+
59
+ interface Int16Array<TArrayBuffer extends ArrayBufferLike> {
60
+ /**
61
+ * Returns the item located at the specified index.
62
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
63
+ */
64
+ at(index: number): number | undefined;
65
+ }
66
+
67
+ interface Uint16Array<TArrayBuffer extends ArrayBufferLike> {
68
+ /**
69
+ * Returns the item located at the specified index.
70
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
71
+ */
72
+ at(index: number): number | undefined;
73
+ }
74
+
75
+ interface Int32Array<TArrayBuffer extends ArrayBufferLike> {
76
+ /**
77
+ * Returns the item located at the specified index.
78
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
79
+ */
80
+ at(index: number): number | undefined;
81
+ }
82
+
83
+ interface Uint32Array<TArrayBuffer extends ArrayBufferLike> {
84
+ /**
85
+ * Returns the item located at the specified index.
86
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
87
+ */
88
+ at(index: number): number | undefined;
89
+ }
90
+
91
+ interface Float32Array<TArrayBuffer extends ArrayBufferLike> {
92
+ /**
93
+ * Returns the item located at the specified index.
94
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
95
+ */
96
+ at(index: number): number | undefined;
97
+ }
98
+
99
+ interface Float64Array<TArrayBuffer extends ArrayBufferLike> {
100
+ /**
101
+ * Returns the item located at the specified index.
102
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
103
+ */
104
+ at(index: number): number | undefined;
105
+ }
106
+
107
+ interface BigInt64Array<TArrayBuffer extends ArrayBufferLike> {
108
+ /**
109
+ * Returns the item located at the specified index.
110
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
111
+ */
112
+ at(index: number): bigint | undefined;
113
+ }
114
+
115
+ interface BigUint64Array<TArrayBuffer extends ArrayBufferLike> {
116
+ /**
117
+ * Returns the item located at the specified index.
118
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
119
+ */
120
+ at(index: number): bigint | undefined;
121
+ }
@@ -0,0 +1,25 @@
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="es2021" />
20
+ /// <reference lib="es2022.array" />
21
+ /// <reference lib="es2022.error" />
22
+ /// <reference lib="es2022.intl" />
23
+ /// <reference lib="es2022.object" />
24
+ /// <reference lib="es2022.regexp" />
25
+ /// <reference lib="es2022.string" />
@@ -0,0 +1,75 @@
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="es2021.promise" />
20
+
21
+ interface ErrorOptions {
22
+ cause?: unknown;
23
+ }
24
+
25
+ interface Error {
26
+ cause?: unknown;
27
+ }
28
+
29
+ interface ErrorConstructor {
30
+ new (message?: string, options?: ErrorOptions): Error;
31
+ (message?: string, options?: ErrorOptions): Error;
32
+ }
33
+
34
+ interface EvalErrorConstructor {
35
+ new (message?: string, options?: ErrorOptions): EvalError;
36
+ (message?: string, options?: ErrorOptions): EvalError;
37
+ }
38
+
39
+ interface RangeErrorConstructor {
40
+ new (message?: string, options?: ErrorOptions): RangeError;
41
+ (message?: string, options?: ErrorOptions): RangeError;
42
+ }
43
+
44
+ interface ReferenceErrorConstructor {
45
+ new (message?: string, options?: ErrorOptions): ReferenceError;
46
+ (message?: string, options?: ErrorOptions): ReferenceError;
47
+ }
48
+
49
+ interface SyntaxErrorConstructor {
50
+ new (message?: string, options?: ErrorOptions): SyntaxError;
51
+ (message?: string, options?: ErrorOptions): SyntaxError;
52
+ }
53
+
54
+ interface TypeErrorConstructor {
55
+ new (message?: string, options?: ErrorOptions): TypeError;
56
+ (message?: string, options?: ErrorOptions): TypeError;
57
+ }
58
+
59
+ interface URIErrorConstructor {
60
+ new (message?: string, options?: ErrorOptions): URIError;
61
+ (message?: string, options?: ErrorOptions): URIError;
62
+ }
63
+
64
+ interface AggregateErrorConstructor {
65
+ new (
66
+ errors: Iterable<any>,
67
+ message?: string,
68
+ options?: ErrorOptions,
69
+ ): AggregateError;
70
+ (
71
+ errors: Iterable<any>,
72
+ message?: string,
73
+ options?: ErrorOptions,
74
+ ): AggregateError;
75
+ }
@@ -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="es2022" />
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,121 @@
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
+ /**
21
+ * An object with some or all properties of the `Intl.Segmenter` constructor `options` parameter.
22
+ *
23
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
24
+ */
25
+ interface SegmenterOptions {
26
+ /** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
27
+ localeMatcher?: "best fit" | "lookup" | undefined;
28
+ /** The type of input to be split */
29
+ granularity?: "grapheme" | "word" | "sentence" | undefined;
30
+ }
31
+
32
+ interface Segmenter {
33
+ /**
34
+ * Returns `Segments` object containing the segments of the input string, using the segmenter's locale and granularity.
35
+ *
36
+ * @param input - The text to be segmented as a `string`.
37
+ *
38
+ * @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
39
+ */
40
+ segment(input: string): Segments;
41
+ resolvedOptions(): ResolvedSegmenterOptions;
42
+ }
43
+
44
+ interface ResolvedSegmenterOptions {
45
+ locale: string;
46
+ granularity: "grapheme" | "word" | "sentence";
47
+ }
48
+
49
+ interface SegmentIterator<T> extends IteratorObject<T, BuiltinIteratorReturn, unknown> {
50
+ [Symbol.iterator](): SegmentIterator<T>;
51
+ }
52
+
53
+ interface Segments {
54
+ /**
55
+ * Returns an object describing the segment in the original string that includes the code unit at a specified index.
56
+ *
57
+ * @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to `0`.
58
+ */
59
+ containing(codeUnitIndex?: number): SegmentData;
60
+
61
+ /** Returns an iterator to iterate over the segments. */
62
+ [Symbol.iterator](): SegmentIterator<SegmentData>;
63
+ }
64
+
65
+ interface SegmentData {
66
+ /** A string containing the segment extracted from the original input string. */
67
+ segment: string;
68
+ /** The code unit index in the original input string at which the segment begins. */
69
+ index: number;
70
+ /** The complete input string that was segmented. */
71
+ input: string;
72
+ /**
73
+ * A boolean value only if granularity is "word"; otherwise, undefined.
74
+ * If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
75
+ */
76
+ isWordLike?: boolean;
77
+ }
78
+
79
+ const Segmenter: {
80
+ prototype: Segmenter;
81
+
82
+ /**
83
+ * Creates a new `Intl.Segmenter` object.
84
+ *
85
+ * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
86
+ * For the general form and interpretation of the `locales` argument,
87
+ * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
88
+ *
89
+ * @param options - An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
90
+ * with some or all options of `SegmenterOptions`.
91
+ *
92
+ * @returns [Intl.Segmenter](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
93
+ *
94
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
95
+ */
96
+ new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;
97
+
98
+ /**
99
+ * Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
100
+ *
101
+ * @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
102
+ * For the general form and interpretation of the `locales` argument,
103
+ * see the [`Intl` page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
104
+ *
105
+ * @param options An [object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
106
+ * with some or all possible options.
107
+ *
108
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
109
+ */
110
+ supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
111
+ };
112
+
113
+ /**
114
+ * Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
115
+ * [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
116
+ *
117
+ * @param key A string indicating the category of values to return.
118
+ * @returns A sorted array of the supported values.
119
+ */
120
+ function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];
121
+ }
@@ -0,0 +1,26 @@
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 ObjectConstructor {
20
+ /**
21
+ * Determines whether an object has a property with the specified name.
22
+ * @param o An object.
23
+ * @param v A property name.
24
+ */
25
+ hasOwn(o: object, v: PropertyKey): boolean;
26
+ }
@@ -0,0 +1,39 @@
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
+ indices?: RegExpIndicesArray;
21
+ }
22
+
23
+ interface RegExpExecArray {
24
+ indices?: RegExpIndicesArray;
25
+ }
26
+
27
+ interface RegExpIndicesArray extends Array<[number, number]> {
28
+ groups?: {
29
+ [key: string]: [number, number];
30
+ };
31
+ }
32
+
33
+ interface RegExp {
34
+ /**
35
+ * Returns a Boolean value indicating the state of the hasIndices flag (d) used with a regular expression.
36
+ * Default is false. Read-only.
37
+ */
38
+ readonly hasIndices: boolean;
39
+ }
@@ -0,0 +1,25 @@
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
+ /**
21
+ * Returns a new String consisting of the single UTF-16 code unit located at the specified index.
22
+ * @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
23
+ */
24
+ at(index: number): string | undefined;
25
+ }