typescript 4.9.0-dev.20220916 → 4.9.0-dev.20220917

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.es5.d.ts CHANGED
@@ -960,6 +960,10 @@ interface RegExpExecArray extends Array<string> {
960
960
  * A copy of the search string.
961
961
  */
962
962
  input: string;
963
+ /**
964
+ * The first match. This will always be present because `null` will be returned if there are no matches.
965
+ */
966
+ 0: string;
963
967
  }
964
968
 
965
969
  interface RegExp {
package/lib/tsc.js CHANGED
@@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
69
69
  var ts;
70
70
  (function (ts) {
71
71
  ts.versionMajorMinor = "4.9";
72
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220916");
72
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220917");
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
@@ -68880,7 +68880,7 @@ var ts;
68880
68880
  checkDecorators(node);
68881
68881
  }
68882
68882
  function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
68883
- if (index < typeParameters.length) {
68883
+ if (node.typeArguments && index < node.typeArguments.length) {
68884
68884
  return getTypeFromTypeNode(node.typeArguments[index]);
68885
68885
  }
68886
68886
  return getEffectiveTypeArguments(node, typeParameters)[index];
package/lib/tsserver.js CHANGED
@@ -109,7 +109,7 @@ var ts;
109
109
  // The following is baselined as a literal template type without intervention
110
110
  /** The version of the TypeScript compiler release */
111
111
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
112
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220916");
112
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220917");
113
113
  /* @internal */
114
114
  var Comparison;
115
115
  (function (Comparison) {
@@ -82027,7 +82027,7 @@ var ts;
82027
82027
  checkDecorators(node);
82028
82028
  }
82029
82029
  function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
82030
- if (index < typeParameters.length) {
82030
+ if (node.typeArguments && index < node.typeArguments.length) {
82031
82031
  return getTypeFromTypeNode(node.typeArguments[index]);
82032
82032
  }
82033
82033
  return getEffectiveTypeArguments(node, typeParameters)[index];
@@ -135496,7 +135496,8 @@ var ts;
135496
135496
  }
135497
135497
  var parameters = typeNode.parameters.map(function (typedParam) {
135498
135498
  return ts.factory.createParameterDeclaration(
135499
- /*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name, typedParam.questionToken,
135499
+ /*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
135500
+ /*questionToken*/ undefined,
135500
135501
  /*type*/ undefined, typedParam.initializer);
135501
135502
  });
135502
135503
  return ts.factory.createMethodDeclaration(
@@ -108,7 +108,7 @@ var ts;
108
108
  // The following is baselined as a literal template type without intervention
109
109
  /** The version of the TypeScript compiler release */
110
110
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
111
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220916");
111
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220917");
112
112
  /* @internal */
113
113
  var Comparison;
114
114
  (function (Comparison) {
@@ -82026,7 +82026,7 @@ var ts;
82026
82026
  checkDecorators(node);
82027
82027
  }
82028
82028
  function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
82029
- if (index < typeParameters.length) {
82029
+ if (node.typeArguments && index < node.typeArguments.length) {
82030
82030
  return getTypeFromTypeNode(node.typeArguments[index]);
82031
82031
  }
82032
82032
  return getEffectiveTypeArguments(node, typeParameters)[index];
@@ -135914,7 +135914,8 @@ var ts;
135914
135914
  }
135915
135915
  var parameters = typeNode.parameters.map(function (typedParam) {
135916
135916
  return ts.factory.createParameterDeclaration(
135917
- /*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name, typedParam.questionToken,
135917
+ /*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
135918
+ /*questionToken*/ undefined,
135918
135919
  /*type*/ undefined, typedParam.initializer);
135919
135920
  });
135920
135921
  return ts.factory.createMethodDeclaration(
package/lib/typescript.js CHANGED
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220916");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220917");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -82017,7 +82017,7 @@ var ts;
82017
82017
  checkDecorators(node);
82018
82018
  }
82019
82019
  function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
82020
- if (index < typeParameters.length) {
82020
+ if (node.typeArguments && index < node.typeArguments.length) {
82021
82021
  return getTypeFromTypeNode(node.typeArguments[index]);
82022
82022
  }
82023
82023
  return getEffectiveTypeArguments(node, typeParameters)[index];
@@ -135905,7 +135905,8 @@ var ts;
135905
135905
  }
135906
135906
  var parameters = typeNode.parameters.map(function (typedParam) {
135907
135907
  return ts.factory.createParameterDeclaration(
135908
- /*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name, typedParam.questionToken,
135908
+ /*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
135909
+ /*questionToken*/ undefined,
135909
135910
  /*type*/ undefined, typedParam.initializer);
135910
135911
  });
135911
135912
  return ts.factory.createMethodDeclaration(
@@ -99,7 +99,7 @@ var ts;
99
99
  // The following is baselined as a literal template type without intervention
100
100
  /** The version of the TypeScript compiler release */
101
101
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
102
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220916");
102
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220917");
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -82017,7 +82017,7 @@ var ts;
82017
82017
  checkDecorators(node);
82018
82018
  }
82019
82019
  function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
82020
- if (index < typeParameters.length) {
82020
+ if (node.typeArguments && index < node.typeArguments.length) {
82021
82021
  return getTypeFromTypeNode(node.typeArguments[index]);
82022
82022
  }
82023
82023
  return getEffectiveTypeArguments(node, typeParameters)[index];
@@ -135905,7 +135905,8 @@ var ts;
135905
135905
  }
135906
135906
  var parameters = typeNode.parameters.map(function (typedParam) {
135907
135907
  return ts.factory.createParameterDeclaration(
135908
- /*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name, typedParam.questionToken,
135908
+ /*modifiers*/ undefined, typedParam.dotDotDotToken, typedParam.name,
135909
+ /*questionToken*/ undefined,
135909
135910
  /*type*/ undefined, typedParam.initializer);
135910
135911
  });
135911
135912
  return ts.factory.createMethodDeclaration(
@@ -89,7 +89,7 @@ var ts;
89
89
  // The following is baselined as a literal template type without intervention
90
90
  /** The version of the TypeScript compiler release */
91
91
  // eslint-disable-next-line @typescript-eslint/no-inferrable-types
92
- ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220916");
92
+ ts.version = "".concat(ts.versionMajorMinor, ".0-dev.20220917");
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
@@ -82007,7 +82007,7 @@ var ts;
82007
82007
  checkDecorators(node);
82008
82008
  }
82009
82009
  function getEffectiveTypeArgumentAtIndex(node, typeParameters, index) {
82010
- if (index < typeParameters.length) {
82010
+ if (node.typeArguments && index < node.typeArguments.length) {
82011
82011
  return getTypeFromTypeNode(node.typeArguments[index]);
82012
82012
  }
82013
82013
  return getEffectiveTypeArguments(node, typeParameters)[index];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "typescript",
3
3
  "author": "Microsoft Corp.",
4
4
  "homepage": "https://www.typescriptlang.org/",
5
- "version": "4.9.0-dev.20220916",
5
+ "version": "4.9.0-dev.20220917",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [