typescript 4.9.0-dev.20220823 → 4.9.0-dev.20220824

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.
@@ -0,0 +1 @@
1
+ * text eol=lf
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 = ts.versionMajorMinor + ".0-dev.20220823";
72
+ ts.version = ts.versionMajorMinor + ".0-dev.20220824";
73
73
  var NativeCollections;
74
74
  (function (NativeCollections) {
75
75
  var globals = typeof globalThis !== "undefined" ? globalThis :
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 = ts.versionMajorMinor + ".0-dev.20220823";
112
+ ts.version = ts.versionMajorMinor + ".0-dev.20220824";
113
113
  /* @internal */
114
114
  var Comparison;
115
115
  (function (Comparison) {
@@ -133330,7 +133330,7 @@ var ts;
133330
133330
  // Get string literal completions from specialized signatures of the target
133331
133331
  // i.e. declare function f(a: 'A');
133332
133332
  // f("/*completion position*/")
133333
- return argumentInfo ? getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) : fromContextualType();
133333
+ return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
133334
133334
  }
133335
133335
  // falls through (is `require("")` or `require(""` or `import("")`)
133336
133336
  case 266 /* ImportDeclaration */:
@@ -133386,7 +133386,7 @@ var ts;
133386
133386
  isNewIdentifier = isNewIdentifier || !!(type.flags & 4 /* String */);
133387
133387
  return getStringLiteralTypes(type, uniques);
133388
133388
  });
133389
- return { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier };
133389
+ return ts.length(types) ? { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier } : undefined;
133390
133390
  }
133391
133391
  function stringLiteralCompletionsFromProperties(type) {
133392
133392
  return type && {
@@ -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 = ts.versionMajorMinor + ".0-dev.20220823";
111
+ ts.version = ts.versionMajorMinor + ".0-dev.20220824";
112
112
  /* @internal */
113
113
  var Comparison;
114
114
  (function (Comparison) {
@@ -133748,7 +133748,7 @@ var ts;
133748
133748
  // Get string literal completions from specialized signatures of the target
133749
133749
  // i.e. declare function f(a: 'A');
133750
133750
  // f("/*completion position*/")
133751
- return argumentInfo ? getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) : fromContextualType();
133751
+ return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
133752
133752
  }
133753
133753
  // falls through (is `require("")` or `require(""` or `import("")`)
133754
133754
  case 266 /* ImportDeclaration */:
@@ -133804,7 +133804,7 @@ var ts;
133804
133804
  isNewIdentifier = isNewIdentifier || !!(type.flags & 4 /* String */);
133805
133805
  return getStringLiteralTypes(type, uniques);
133806
133806
  });
133807
- return { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier };
133807
+ return ts.length(types) ? { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier } : undefined;
133808
133808
  }
133809
133809
  function stringLiteralCompletionsFromProperties(type) {
133810
133810
  return type && {
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 = ts.versionMajorMinor + ".0-dev.20220823";
102
+ ts.version = ts.versionMajorMinor + ".0-dev.20220824";
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -133739,7 +133739,7 @@ var ts;
133739
133739
  // Get string literal completions from specialized signatures of the target
133740
133740
  // i.e. declare function f(a: 'A');
133741
133741
  // f("/*completion position*/")
133742
- return argumentInfo ? getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) : fromContextualType();
133742
+ return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
133743
133743
  }
133744
133744
  // falls through (is `require("")` or `require(""` or `import("")`)
133745
133745
  case 266 /* ImportDeclaration */:
@@ -133795,7 +133795,7 @@ var ts;
133795
133795
  isNewIdentifier = isNewIdentifier || !!(type.flags & 4 /* String */);
133796
133796
  return getStringLiteralTypes(type, uniques);
133797
133797
  });
133798
- return { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier };
133798
+ return ts.length(types) ? { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier } : undefined;
133799
133799
  }
133800
133800
  function stringLiteralCompletionsFromProperties(type) {
133801
133801
  return type && {
@@ -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 = ts.versionMajorMinor + ".0-dev.20220823";
102
+ ts.version = ts.versionMajorMinor + ".0-dev.20220824";
103
103
  /* @internal */
104
104
  var Comparison;
105
105
  (function (Comparison) {
@@ -133739,7 +133739,7 @@ var ts;
133739
133739
  // Get string literal completions from specialized signatures of the target
133740
133740
  // i.e. declare function f(a: 'A');
133741
133741
  // f("/*completion position*/")
133742
- return argumentInfo ? getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) : fromContextualType();
133742
+ return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
133743
133743
  }
133744
133744
  // falls through (is `require("")` or `require(""` or `import("")`)
133745
133745
  case 266 /* ImportDeclaration */:
@@ -133795,7 +133795,7 @@ var ts;
133795
133795
  isNewIdentifier = isNewIdentifier || !!(type.flags & 4 /* String */);
133796
133796
  return getStringLiteralTypes(type, uniques);
133797
133797
  });
133798
- return { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier };
133798
+ return ts.length(types) ? { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier } : undefined;
133799
133799
  }
133800
133800
  function stringLiteralCompletionsFromProperties(type) {
133801
133801
  return type && {
@@ -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 = ts.versionMajorMinor + ".0-dev.20220823";
92
+ ts.version = ts.versionMajorMinor + ".0-dev.20220824";
93
93
  /* @internal */
94
94
  var Comparison;
95
95
  (function (Comparison) {
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.20220823",
5
+ "version": "4.9.0-dev.20220824",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -28,6 +28,17 @@
28
28
  "engines": {
29
29
  "node": ">=4.2.0"
30
30
  },
31
+ "files": [
32
+ "./bin",
33
+ "./lib",
34
+ "!./lib/enu",
35
+ "./loc",
36
+ "./AUTHORS.md",
37
+ "./LICENSE.txt",
38
+ "./README.md",
39
+ "./SECURITY.md",
40
+ "./ThirdPartyNoticeText.txt"
41
+ ],
31
42
  "devDependencies": {
32
43
  "@octokit/rest": "latest",
33
44
  "@types/async": "latest",
@@ -1 +0,0 @@
1
- This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
@@ -1,15 +0,0 @@
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
-