typescript 5.4.0-dev.20231116 → 5.4.0-dev.20231117

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.
@@ -43,7 +43,7 @@ interface SuppressedError extends Error {
43
43
  suppressed: any;
44
44
  }
45
45
 
46
- interface SuppressedErrorConstructor extends ErrorConstructor {
46
+ interface SuppressedErrorConstructor {
47
47
  new (error: any, suppressed: any, message?: string): SuppressedError;
48
48
  (error: any, suppressed: any, message?: string): SuppressedError;
49
49
  readonly prototype: SuppressedError;
package/lib/tsc.js CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
18
18
 
19
19
  // src/compiler/corePublic.ts
20
20
  var versionMajorMinor = "5.4";
21
- var version = `${versionMajorMinor}.0-dev.20231116`;
21
+ var version = `${versionMajorMinor}.0-dev.20231117`;
22
22
 
23
23
  // src/compiler/core.ts
24
24
  var emptyArray = [];
package/lib/tsserver.js CHANGED
@@ -2330,7 +2330,7 @@ module.exports = __toCommonJS(server_exports);
2330
2330
 
2331
2331
  // src/compiler/corePublic.ts
2332
2332
  var versionMajorMinor = "5.4";
2333
- var version = `${versionMajorMinor}.0-dev.20231116`;
2333
+ var version = `${versionMajorMinor}.0-dev.20231117`;
2334
2334
  var Comparison = /* @__PURE__ */ ((Comparison3) => {
2335
2335
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
2336
2336
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -158924,6 +158924,9 @@ function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, con
158924
158924
  if (!info || uniques.get(info.name) && (!origin || !originIsObjectLiteralMethod(origin)) || kind === 1 /* Global */ && symbolToSortTextMap && !shouldIncludeSymbol(symbol, symbolToSortTextMap)) {
158925
158925
  continue;
158926
158926
  }
158927
+ if (!isTypeOnlyLocation && isInJSFile(sourceFile) && symbolAppearsToBeTypeOnly(symbol)) {
158928
+ continue;
158929
+ }
158927
158930
  const { name, needsConvertPropertyAccess } = info;
158928
158931
  const originalSortText = (symbolToSortTextMap == null ? void 0 : symbolToSortTextMap[getSymbolId(symbol)]) ?? SortText.LocationPriority;
158929
158932
  const sortText = isDeprecated(symbol, typeChecker) ? SortText.Deprecated(originalSortText) : originalSortText;
@@ -159003,6 +159006,10 @@ function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, con
159003
159006
  }
159004
159007
  return !!(allFlags & 111551 /* Value */);
159005
159008
  }
159009
+ function symbolAppearsToBeTypeOnly(symbol) {
159010
+ var _a;
159011
+ return !(symbol.flags & 111551 /* Value */) && (!isInJSFile((_a = symbol.declarations) == null ? void 0 : _a[0]) || !!(symbol.flags & 788968 /* Type */));
159012
+ }
159006
159013
  }
159007
159014
  function getLabelCompletionAtPosition(node) {
159008
159015
  const entries = getLabelStatementCompletions(node);
package/lib/typescript.js CHANGED
@@ -35,7 +35,7 @@ var ts = (() => {
35
35
  "src/compiler/corePublic.ts"() {
36
36
  "use strict";
37
37
  versionMajorMinor = "5.4";
38
- version = `${versionMajorMinor}.0-dev.20231116`;
38
+ version = `${versionMajorMinor}.0-dev.20231117`;
39
39
  Comparison = /* @__PURE__ */ ((Comparison3) => {
40
40
  Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
41
41
  Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -158147,6 +158147,9 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158147
158147
  if (!info || uniques.get(info.name) && (!origin || !originIsObjectLiteralMethod(origin)) || kind === 1 /* Global */ && symbolToSortTextMap && !shouldIncludeSymbol(symbol, symbolToSortTextMap)) {
158148
158148
  continue;
158149
158149
  }
158150
+ if (!isTypeOnlyLocation && isInJSFile(sourceFile) && symbolAppearsToBeTypeOnly(symbol)) {
158151
+ continue;
158152
+ }
158150
158153
  const { name, needsConvertPropertyAccess } = info;
158151
158154
  const originalSortText = (symbolToSortTextMap == null ? void 0 : symbolToSortTextMap[getSymbolId(symbol)]) ?? SortText.LocationPriority;
158152
158155
  const sortText = isDeprecated(symbol, typeChecker) ? SortText.Deprecated(originalSortText) : originalSortText;
@@ -158226,6 +158229,10 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158226
158229
  }
158227
158230
  return !!(allFlags & 111551 /* Value */);
158228
158231
  }
158232
+ function symbolAppearsToBeTypeOnly(symbol) {
158233
+ var _a;
158234
+ return !(symbol.flags & 111551 /* Value */) && (!isInJSFile((_a = symbol.declarations) == null ? void 0 : _a[0]) || !!(symbol.flags & 788968 /* Type */));
158235
+ }
158229
158236
  }
158230
158237
  function getLabelCompletionAtPosition(node) {
158231
158238
  const entries = getLabelStatementCompletions(node);
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
54
54
 
55
55
  // src/compiler/corePublic.ts
56
56
  var versionMajorMinor = "5.4";
57
- var version = `${versionMajorMinor}.0-dev.20231116`;
57
+ var version = `${versionMajorMinor}.0-dev.20231117`;
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.4.0-dev.20231116",
5
+ "version": "5.4.0-dev.20231117",
6
6
  "license": "Apache-2.0",
7
7
  "description": "TypeScript is a language for application scale JavaScript development",
8
8
  "keywords": [
@@ -114,5 +114,5 @@
114
114
  "node": "20.1.0",
115
115
  "npm": "8.19.4"
116
116
  },
117
- "gitHead": "32b618c2d8f42948e7d6fa2e9b264079e30b5349"
117
+ "gitHead": "196dcf8a95de386886aea5aafc34c7b4d07aeecb"
118
118
  }