typescript 5.0.0-dev.20230103 → 5.0.0-dev.20230105

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.
@@ -30,6 +30,10 @@ var __copyProps = (to, from, except, desc) => {
30
30
  return to;
31
31
  };
32
32
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
+ // If the importer is in node compatibility mode or this is not an ESM
34
+ // file that has been converted to a CommonJS file using a Babel-
35
+ // compatible transform (i.e. "__esModule" has not been set), then set
36
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
37
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
38
  mod
35
39
  ));
@@ -77,6 +81,7 @@ function createCancellationToken(args) {
77
81
  } else {
78
82
  return {
79
83
  isCancellationRequested: () => pipeExists(cancellationPipeName),
84
+ // TODO: GH#18217
80
85
  setRequest: (_requestId) => void 0,
81
86
  resetRequest: (_requestId) => void 0
82
87
  };
@@ -25,3 +25,4 @@ and limitations under the License.
25
25
  /// <reference lib="es2022.object" />
26
26
  /// <reference lib="es2022.sharedmemory" />
27
27
  /// <reference lib="es2022.string" />
28
+ /// <reference lib="es2022.regexp" />
@@ -0,0 +1,41 @@
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
+ interface RegExpMatchArray {
22
+ indices?: RegExpIndicesArray;
23
+ }
24
+
25
+ interface RegExpExecArray {
26
+ indices?: RegExpIndicesArray;
27
+ }
28
+
29
+ interface RegExpIndicesArray extends Array<[number, number]> {
30
+ groups?: {
31
+ [key: string]: [number, number];
32
+ };
33
+ }
34
+
35
+ interface RegExp {
36
+ /**
37
+ * Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
38
+ * Default is false. Read-only.
39
+ */
40
+ readonly hasIndices: boolean;
41
+ }