typescript 5.0.0-dev.20230105 → 5.0.0-dev.20230106

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/README.md CHANGED
@@ -33,8 +33,6 @@ There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob
33
33
  * Help each other in the [TypeScript Community Discord](https://discord.gg/typescript).
34
34
  * Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
35
35
  * [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md).
36
- * Read the archived language specification ([docx](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.docx?raw=true),
37
- [pdf](https://github.com/microsoft/TypeScript/blob/main/doc/TypeScript%20Language%20Specification%20-%20ARCHIVED.pdf?raw=true), [md](https://github.com/microsoft/TypeScript/blob/main/doc/spec-ARCHIVED.md)).
38
36
 
39
37
  This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
40
38
  the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)
package/lib/tsc.js CHANGED
@@ -23,7 +23,7 @@ var __export = (target, all) => {
23
23
 
24
24
  // src/compiler/corePublic.ts
25
25
  var versionMajorMinor = "5.0";
26
- var version = `${versionMajorMinor}.0-dev.20230105`;
26
+ var version = `${versionMajorMinor}.0-dev.20230106`;
27
27
 
28
28
  // src/compiler/core.ts
29
29
  var emptyArray = [];
@@ -64140,6 +64140,7 @@ function createTypeChecker(host) {
64140
64140
  }
64141
64141
  }
64142
64142
  function getNarrowedTypeOfSymbol(symbol, location) {
64143
+ const type = getTypeOfSymbol(symbol);
64143
64144
  const declaration = symbol.valueDeclaration;
64144
64145
  if (declaration) {
64145
64146
  if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
@@ -64191,7 +64192,7 @@ function createTypeChecker(host) {
64191
64192
  }
64192
64193
  }
64193
64194
  }
64194
- return getTypeOfSymbol(symbol);
64195
+ return type;
64195
64196
  }
64196
64197
  function checkIdentifier(node, checkMode) {
64197
64198
  if (isThisInTypeQuery(node)) {
package/lib/tsserver.js CHANGED
@@ -2670,7 +2670,7 @@ __export(ts_server_exports3, {
2670
2670
 
2671
2671
  // src/compiler/corePublic.ts
2672
2672
  var versionMajorMinor = "5.0";
2673
- var version = `${versionMajorMinor}.0-dev.20230105`;
2673
+ var version = `${versionMajorMinor}.0-dev.20230106`;
2674
2674
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2675
2675
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2676
2676
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -69192,6 +69192,7 @@ function createTypeChecker(host) {
69192
69192
  }
69193
69193
  }
69194
69194
  function getNarrowedTypeOfSymbol(symbol, location) {
69195
+ const type = getTypeOfSymbol(symbol);
69195
69196
  const declaration = symbol.valueDeclaration;
69196
69197
  if (declaration) {
69197
69198
  if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
@@ -69243,7 +69244,7 @@ function createTypeChecker(host) {
69243
69244
  }
69244
69245
  }
69245
69246
  }
69246
- return getTypeOfSymbol(symbol);
69247
+ return type;
69247
69248
  }
69248
69249
  function checkIdentifier(node, checkMode) {
69249
69250
  if (isThisInTypeQuery(node)) {
@@ -163667,7 +163668,14 @@ function getAllRules() {
163667
163668
  const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, 1 /* EndOfFileToken */]);
163668
163669
  const keywords = tokenRangeFromRange(81 /* FirstKeyword */, 162 /* LastKeyword */);
163669
163670
  const binaryOperators = tokenRangeFromRange(29 /* FirstBinaryOperator */, 78 /* LastBinaryOperator */);
163670
- const binaryKeywordOperators = [101 /* InKeyword */, 102 /* InstanceOfKeyword */, 162 /* OfKeyword */, 128 /* AsKeyword */, 140 /* IsKeyword */];
163671
+ const binaryKeywordOperators = [
163672
+ 101 /* InKeyword */,
163673
+ 102 /* InstanceOfKeyword */,
163674
+ 162 /* OfKeyword */,
163675
+ 128 /* AsKeyword */,
163676
+ 140 /* IsKeyword */,
163677
+ 150 /* SatisfiesKeyword */
163678
+ ];
163671
163679
  const unaryPrefixOperators = [45 /* PlusPlusToken */, 46 /* MinusMinusToken */, 54 /* TildeToken */, 53 /* ExclamationToken */];
163672
163680
  const unaryPrefixExpressions = [
163673
163681
  8 /* NumericLiteral */,
@@ -3966,21 +3966,6 @@ declare namespace ts {
3966
3966
  interface SortedArray<T> extends Array<T> {
3967
3967
  " __sortedArrayBrand": any;
3968
3968
  }
3969
- /** Common read methods for ES6 Map/Set. */
3970
- interface ReadonlyCollection<K> {
3971
- readonly size: number;
3972
- has(key: K): boolean;
3973
- keys(): Iterator<K>;
3974
- }
3975
- /** Common write methods for ES6 Map/Set. */
3976
- interface Collection<K> extends ReadonlyCollection<K> {
3977
- delete(key: K): boolean;
3978
- clear(): void;
3979
- }
3980
- /** Array that is only intended to be pushed to, never read. */
3981
- interface Push<T> {
3982
- push(...values: T[]): void;
3983
- }
3984
3969
  type Path = string & {
3985
3970
  __pathBrand: any;
3986
3971
  };
@@ -8569,7 +8554,7 @@ declare namespace ts {
8569
8554
  resolvePath(path: string): string;
8570
8555
  fileExists(fileName: string): boolean;
8571
8556
  readFile(fileName: string): string | undefined;
8572
- }, errors?: Push<Diagnostic>): void;
8557
+ }, errors?: Diagnostic[]): void;
8573
8558
  function getOriginalNode(node: Node): Node;
8574
8559
  function getOriginalNode<T extends Node>(node: Node, nodeTest: (node: Node) => node is T): T;
8575
8560
  function getOriginalNode(node: Node | undefined): Node | undefined;
@@ -9149,7 +9134,7 @@ declare namespace ts {
9149
9134
  /**
9150
9135
  * Convert the json syntax tree into the json value
9151
9136
  */
9152
- function convertToObject(sourceFile: JsonSourceFile, errors: Push<Diagnostic>): any;
9137
+ function convertToObject(sourceFile: JsonSourceFile, errors: Diagnostic[]): any;
9153
9138
  /**
9154
9139
  * Parse the contents of a config file (tsconfig.json).
9155
9140
  * @param json The contents of the config file to parse
@@ -42,7 +42,7 @@ var ts = (() => {
42
42
  "src/compiler/corePublic.ts"() {
43
43
  "use strict";
44
44
  versionMajorMinor = "5.0";
45
- version = `${versionMajorMinor}.0-dev.20230105`;
45
+ version = `${versionMajorMinor}.0-dev.20230106`;
46
46
  Comparison = /* @__PURE__ */ ((Comparison3) => {
47
47
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
48
48
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -66626,6 +66626,7 @@ ${lanes.join("\n")}
66626
66626
  }
66627
66627
  }
66628
66628
  function getNarrowedTypeOfSymbol(symbol, location) {
66629
+ const type = getTypeOfSymbol(symbol);
66629
66630
  const declaration = symbol.valueDeclaration;
66630
66631
  if (declaration) {
66631
66632
  if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
@@ -66677,7 +66678,7 @@ ${lanes.join("\n")}
66677
66678
  }
66678
66679
  }
66679
66680
  }
66680
- return getTypeOfSymbol(symbol);
66681
+ return type;
66681
66682
  }
66682
66683
  function checkIdentifier(node, checkMode) {
66683
66684
  if (isThisInTypeQuery(node)) {
@@ -160139,7 +160140,14 @@ ${options.prefix}` : "\n" : options.prefix
160139
160140
  const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, 1 /* EndOfFileToken */]);
160140
160141
  const keywords = tokenRangeFromRange(81 /* FirstKeyword */, 162 /* LastKeyword */);
160141
160142
  const binaryOperators = tokenRangeFromRange(29 /* FirstBinaryOperator */, 78 /* LastBinaryOperator */);
160142
- const binaryKeywordOperators = [101 /* InKeyword */, 102 /* InstanceOfKeyword */, 162 /* OfKeyword */, 128 /* AsKeyword */, 140 /* IsKeyword */];
160143
+ const binaryKeywordOperators = [
160144
+ 101 /* InKeyword */,
160145
+ 102 /* InstanceOfKeyword */,
160146
+ 162 /* OfKeyword */,
160147
+ 128 /* AsKeyword */,
160148
+ 140 /* IsKeyword */,
160149
+ 150 /* SatisfiesKeyword */
160150
+ ];
160143
160151
  const unaryPrefixOperators = [45 /* PlusPlusToken */, 46 /* MinusMinusToken */, 54 /* TildeToken */, 53 /* ExclamationToken */];
160144
160152
  const unaryPrefixExpressions = [
160145
160153
  8 /* NumericLiteral */,
@@ -31,21 +31,6 @@ declare namespace ts {
31
31
  interface SortedArray<T> extends Array<T> {
32
32
  " __sortedArrayBrand": any;
33
33
  }
34
- /** Common read methods for ES6 Map/Set. */
35
- interface ReadonlyCollection<K> {
36
- readonly size: number;
37
- has(key: K): boolean;
38
- keys(): Iterator<K>;
39
- }
40
- /** Common write methods for ES6 Map/Set. */
41
- interface Collection<K> extends ReadonlyCollection<K> {
42
- delete(key: K): boolean;
43
- clear(): void;
44
- }
45
- /** Array that is only intended to be pushed to, never read. */
46
- interface Push<T> {
47
- push(...values: T[]): void;
48
- }
49
34
  type Path = string & {
50
35
  __pathBrand: any;
51
36
  };
@@ -4634,7 +4619,7 @@ declare namespace ts {
4634
4619
  resolvePath(path: string): string;
4635
4620
  fileExists(fileName: string): boolean;
4636
4621
  readFile(fileName: string): string | undefined;
4637
- }, errors?: Push<Diagnostic>): void;
4622
+ }, errors?: Diagnostic[]): void;
4638
4623
  function getOriginalNode(node: Node): Node;
4639
4624
  function getOriginalNode<T extends Node>(node: Node, nodeTest: (node: Node) => node is T): T;
4640
4625
  function getOriginalNode(node: Node | undefined): Node | undefined;
@@ -5214,7 +5199,7 @@ declare namespace ts {
5214
5199
  /**
5215
5200
  * Convert the json syntax tree into the json value
5216
5201
  */
5217
- function convertToObject(sourceFile: JsonSourceFile, errors: Push<Diagnostic>): any;
5202
+ function convertToObject(sourceFile: JsonSourceFile, errors: Diagnostic[]): any;
5218
5203
  /**
5219
5204
  * Parse the contents of a config file (tsconfig.json).
5220
5205
  * @param json The contents of the config file to parse
package/lib/typescript.js CHANGED
@@ -42,7 +42,7 @@ var ts = (() => {
42
42
  "src/compiler/corePublic.ts"() {
43
43
  "use strict";
44
44
  versionMajorMinor = "5.0";
45
- version = `${versionMajorMinor}.0-dev.20230105`;
45
+ version = `${versionMajorMinor}.0-dev.20230106`;
46
46
  Comparison = /* @__PURE__ */ ((Comparison3) => {
47
47
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
48
48
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -66626,6 +66626,7 @@ ${lanes.join("\n")}
66626
66626
  }
66627
66627
  }
66628
66628
  function getNarrowedTypeOfSymbol(symbol, location) {
66629
+ const type = getTypeOfSymbol(symbol);
66629
66630
  const declaration = symbol.valueDeclaration;
66630
66631
  if (declaration) {
66631
66632
  if (isBindingElement(declaration) && !declaration.initializer && !declaration.dotDotDotToken && declaration.parent.elements.length >= 2) {
@@ -66677,7 +66678,7 @@ ${lanes.join("\n")}
66677
66678
  }
66678
66679
  }
66679
66680
  }
66680
- return getTypeOfSymbol(symbol);
66681
+ return type;
66681
66682
  }
66682
66683
  function checkIdentifier(node, checkMode) {
66683
66684
  if (isThisInTypeQuery(node)) {
@@ -160153,7 +160154,14 @@ ${options.prefix}` : "\n" : options.prefix
160153
160154
  const anyTokenIncludingEOF = tokenRangeFrom([...allTokens, 1 /* EndOfFileToken */]);
160154
160155
  const keywords = tokenRangeFromRange(81 /* FirstKeyword */, 162 /* LastKeyword */);
160155
160156
  const binaryOperators = tokenRangeFromRange(29 /* FirstBinaryOperator */, 78 /* LastBinaryOperator */);
160156
- const binaryKeywordOperators = [101 /* InKeyword */, 102 /* InstanceOfKeyword */, 162 /* OfKeyword */, 128 /* AsKeyword */, 140 /* IsKeyword */];
160157
+ const binaryKeywordOperators = [
160158
+ 101 /* InKeyword */,
160159
+ 102 /* InstanceOfKeyword */,
160160
+ 162 /* OfKeyword */,
160161
+ 128 /* AsKeyword */,
160162
+ 140 /* IsKeyword */,
160163
+ 150 /* SatisfiesKeyword */
160164
+ ];
160157
160165
  const unaryPrefixOperators = [45 /* PlusPlusToken */, 46 /* MinusMinusToken */, 54 /* TildeToken */, 53 /* ExclamationToken */];
160158
160166
  const unaryPrefixExpressions = [
160159
160167
  8 /* NumericLiteral */,
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.0";
57
- var version = `${versionMajorMinor}.0-dev.20230105`;
57
+ var version = `${versionMajorMinor}.0-dev.20230106`;
58
58
 
59
59
  // src/compiler/core.ts
60
60
  var emptyArray = [];
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": "5.0.0-dev.20230105",
5
+ "version": "5.0.0-dev.20230106",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [