typescript 5.3.0-dev.20231002 → 5.3.0-dev.20231004
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/tsc.js +17 -6
- package/lib/tsserver.js +34 -11
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +34 -11
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
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.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20231004`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -14270,6 +14270,7 @@ function getPropertyNameForPropertyNameNode(name) {
|
|
|
14270
14270
|
case 81 /* PrivateIdentifier */:
|
|
14271
14271
|
return name.escapedText;
|
|
14272
14272
|
case 11 /* StringLiteral */:
|
|
14273
|
+
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
14273
14274
|
case 9 /* NumericLiteral */:
|
|
14274
14275
|
return escapeLeadingUnderscores(name.text);
|
|
14275
14276
|
case 167 /* ComputedPropertyName */:
|
|
@@ -42360,10 +42361,12 @@ function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSo
|
|
|
42360
42361
|
importingSourceFile,
|
|
42361
42362
|
host,
|
|
42362
42363
|
userPreferences,
|
|
42363
|
-
options
|
|
42364
|
+
options,
|
|
42365
|
+
/*forAutoImport*/
|
|
42366
|
+
false
|
|
42364
42367
|
).moduleSpecifiers;
|
|
42365
42368
|
}
|
|
42366
|
-
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
42369
|
+
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
42367
42370
|
let computedWithoutCache = false;
|
|
42368
42371
|
const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker);
|
|
42369
42372
|
if (ambient)
|
|
@@ -42381,11 +42384,19 @@ function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions
|
|
|
42381
42384
|
return { moduleSpecifiers: emptyArray, computedWithoutCache };
|
|
42382
42385
|
computedWithoutCache = true;
|
|
42383
42386
|
modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host));
|
|
42384
|
-
const result = computeModuleSpecifiers(
|
|
42387
|
+
const result = computeModuleSpecifiers(
|
|
42388
|
+
modulePaths,
|
|
42389
|
+
compilerOptions,
|
|
42390
|
+
importingSourceFile,
|
|
42391
|
+
host,
|
|
42392
|
+
userPreferences,
|
|
42393
|
+
options,
|
|
42394
|
+
forAutoImport
|
|
42395
|
+
);
|
|
42385
42396
|
cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result);
|
|
42386
42397
|
return { moduleSpecifiers: result, computedWithoutCache };
|
|
42387
42398
|
}
|
|
42388
|
-
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
42399
|
+
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
42389
42400
|
const info = getInfo(importingSourceFile.path, host);
|
|
42390
42401
|
const preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile);
|
|
42391
42402
|
const existingSpecifier = forEach(modulePaths, (modulePath) => forEach(
|
|
@@ -42442,7 +42453,7 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi
|
|
|
42442
42453
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
42443
42454
|
} else if (pathIsBareSpecifier(local)) {
|
|
42444
42455
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
42445
|
-
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
42456
|
+
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
42446
42457
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
42447
42458
|
}
|
|
42448
42459
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2328,7 +2328,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2328
2328
|
|
|
2329
2329
|
// src/compiler/corePublic.ts
|
|
2330
2330
|
var versionMajorMinor = "5.3";
|
|
2331
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2331
|
+
var version = `${versionMajorMinor}.0-dev.20231004`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -18197,6 +18197,7 @@ function getPropertyNameForPropertyNameNode(name) {
|
|
|
18197
18197
|
case 81 /* PrivateIdentifier */:
|
|
18198
18198
|
return name.escapedText;
|
|
18199
18199
|
case 11 /* StringLiteral */:
|
|
18200
|
+
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
18200
18201
|
case 9 /* NumericLiteral */:
|
|
18201
18202
|
return escapeLeadingUnderscores(name.text);
|
|
18202
18203
|
case 167 /* ComputedPropertyName */:
|
|
@@ -47072,10 +47073,12 @@ function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSo
|
|
|
47072
47073
|
importingSourceFile,
|
|
47073
47074
|
host,
|
|
47074
47075
|
userPreferences,
|
|
47075
|
-
options
|
|
47076
|
+
options,
|
|
47077
|
+
/*forAutoImport*/
|
|
47078
|
+
false
|
|
47076
47079
|
).moduleSpecifiers;
|
|
47077
47080
|
}
|
|
47078
|
-
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
47081
|
+
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
47079
47082
|
let computedWithoutCache = false;
|
|
47080
47083
|
const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker);
|
|
47081
47084
|
if (ambient)
|
|
@@ -47093,11 +47096,19 @@ function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions
|
|
|
47093
47096
|
return { moduleSpecifiers: emptyArray, computedWithoutCache };
|
|
47094
47097
|
computedWithoutCache = true;
|
|
47095
47098
|
modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host));
|
|
47096
|
-
const result = computeModuleSpecifiers(
|
|
47099
|
+
const result = computeModuleSpecifiers(
|
|
47100
|
+
modulePaths,
|
|
47101
|
+
compilerOptions,
|
|
47102
|
+
importingSourceFile,
|
|
47103
|
+
host,
|
|
47104
|
+
userPreferences,
|
|
47105
|
+
options,
|
|
47106
|
+
forAutoImport
|
|
47107
|
+
);
|
|
47097
47108
|
cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result);
|
|
47098
47109
|
return { moduleSpecifiers: result, computedWithoutCache };
|
|
47099
47110
|
}
|
|
47100
|
-
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
47111
|
+
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
47101
47112
|
const info = getInfo(importingSourceFile.path, host);
|
|
47102
47113
|
const preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile);
|
|
47103
47114
|
const existingSpecifier = forEach(modulePaths, (modulePath) => forEach(
|
|
@@ -47154,7 +47165,7 @@ function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFi
|
|
|
47154
47165
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
47155
47166
|
} else if (pathIsBareSpecifier(local)) {
|
|
47156
47167
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
47157
|
-
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
47168
|
+
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
47158
47169
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
47159
47170
|
}
|
|
47160
47171
|
}
|
|
@@ -143081,7 +143092,7 @@ function doChange7(sourceFile, changes, declaration, typeNode) {
|
|
|
143081
143092
|
function getInfo4(context) {
|
|
143082
143093
|
if (isInJSFile(context.file) || !refactorKindBeginsWith(inferReturnTypeAction.kind, context.kind))
|
|
143083
143094
|
return;
|
|
143084
|
-
const token =
|
|
143095
|
+
const token = getTouchingPropertyName(context.file, context.startPosition);
|
|
143085
143096
|
const declaration = findAncestor(token, (n) => isBlock(n) || n.parent && isArrowFunction(n.parent) && (n.kind === 39 /* EqualsGreaterThanToken */ || n.parent.body === n) ? "quit" : isConvertibleDeclaration(n));
|
|
143086
143097
|
if (!declaration || !declaration.body || declaration.type) {
|
|
143087
143098
|
return { error: getLocaleSpecificMessage(Diagnostics.Return_type_must_be_inferred_from_a_function) };
|
|
@@ -150091,7 +150102,18 @@ function getNewImportFixes(program, sourceFile, usagePosition, isValidTypeOnlyUs
|
|
|
150091
150102
|
const getChecker = createGetChecker(program, host);
|
|
150092
150103
|
const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
|
|
150093
150104
|
const rejectNodeModulesRelativePaths = moduleResolutionUsesNodeModules(moduleResolution);
|
|
150094
|
-
const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(
|
|
150105
|
+
const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(
|
|
150106
|
+
moduleSymbol,
|
|
150107
|
+
checker,
|
|
150108
|
+
compilerOptions,
|
|
150109
|
+
sourceFile,
|
|
150110
|
+
moduleSpecifierResolutionHost,
|
|
150111
|
+
preferences,
|
|
150112
|
+
/*options*/
|
|
150113
|
+
void 0,
|
|
150114
|
+
/*forAutoImport*/
|
|
150115
|
+
true
|
|
150116
|
+
);
|
|
150095
150117
|
let computedWithoutCacheCount = 0;
|
|
150096
150118
|
const fixes = flatMap(exportInfo, (exportInfo2, i) => {
|
|
150097
150119
|
const checker = getChecker(exportInfo2.isFromPackageJson);
|
|
@@ -158303,7 +158325,7 @@ function getCompletionEntryDetails(program, log, sourceFile, position, entryId,
|
|
|
158303
158325
|
return createSimpleDetails(completionNameForLiteral(sourceFile, preferences, literal), "string" /* string */, typeof literal === "string" ? 8 /* stringLiteral */ : 7 /* numericLiteral */);
|
|
158304
158326
|
}
|
|
158305
158327
|
case "cases": {
|
|
158306
|
-
const
|
|
158328
|
+
const snippets = getExhaustiveCaseSnippets(
|
|
158307
158329
|
contextToken.parent,
|
|
158308
158330
|
sourceFile,
|
|
158309
158331
|
preferences,
|
|
@@ -158313,7 +158335,8 @@ function getCompletionEntryDetails(program, log, sourceFile, position, entryId,
|
|
|
158313
158335
|
/*formatContext*/
|
|
158314
158336
|
void 0
|
|
158315
158337
|
);
|
|
158316
|
-
if (importAdder.hasFixes()) {
|
|
158338
|
+
if (snippets == null ? void 0 : snippets.importAdder.hasFixes()) {
|
|
158339
|
+
const { entry, importAdder } = snippets;
|
|
158317
158340
|
const changes = ts_textChanges_exports.ChangeTracker.with(
|
|
158318
158341
|
{ host, formatContext, preferences },
|
|
158319
158342
|
importAdder.writeFixes
|
|
@@ -158331,7 +158354,7 @@ function getCompletionEntryDetails(program, log, sourceFile, position, entryId,
|
|
|
158331
158354
|
};
|
|
158332
158355
|
}
|
|
158333
158356
|
return {
|
|
158334
|
-
name
|
|
158357
|
+
name,
|
|
158335
158358
|
kind: "" /* unknown */,
|
|
158336
158359
|
kindModifiers: "",
|
|
158337
158360
|
displayParts: [],
|
package/lib/typescript.d.ts
CHANGED
|
@@ -4976,7 +4976,7 @@ declare namespace ts {
|
|
|
4976
4976
|
readonly right: Identifier;
|
|
4977
4977
|
}
|
|
4978
4978
|
type EntityName = Identifier | QualifiedName;
|
|
4979
|
-
type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
|
|
4979
|
+
type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
|
|
4980
4980
|
type MemberName = Identifier | PrivateIdentifier;
|
|
4981
4981
|
type DeclarationName = PropertyName | JsxAttributeName | StringLiteralLike | ElementAccessExpression | BindingPattern | EntityNameExpression;
|
|
4982
4982
|
interface Declaration extends 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.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20231004`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -15566,6 +15566,7 @@ ${lanes.join("\n")}
|
|
|
15566
15566
|
case 81 /* PrivateIdentifier */:
|
|
15567
15567
|
return name.escapedText;
|
|
15568
15568
|
case 11 /* StringLiteral */:
|
|
15569
|
+
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
15569
15570
|
case 9 /* NumericLiteral */:
|
|
15570
15571
|
return escapeLeadingUnderscores(name.text);
|
|
15571
15572
|
case 167 /* ComputedPropertyName */:
|
|
@@ -44937,10 +44938,12 @@ ${lanes.join("\n")}
|
|
|
44937
44938
|
importingSourceFile,
|
|
44938
44939
|
host,
|
|
44939
44940
|
userPreferences,
|
|
44940
|
-
options
|
|
44941
|
+
options,
|
|
44942
|
+
/*forAutoImport*/
|
|
44943
|
+
false
|
|
44941
44944
|
).moduleSpecifiers;
|
|
44942
44945
|
}
|
|
44943
|
-
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
44946
|
+
function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
44944
44947
|
let computedWithoutCache = false;
|
|
44945
44948
|
const ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker);
|
|
44946
44949
|
if (ambient)
|
|
@@ -44958,11 +44961,19 @@ ${lanes.join("\n")}
|
|
|
44958
44961
|
return { moduleSpecifiers: emptyArray, computedWithoutCache };
|
|
44959
44962
|
computedWithoutCache = true;
|
|
44960
44963
|
modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host));
|
|
44961
|
-
const result = computeModuleSpecifiers(
|
|
44964
|
+
const result = computeModuleSpecifiers(
|
|
44965
|
+
modulePaths,
|
|
44966
|
+
compilerOptions,
|
|
44967
|
+
importingSourceFile,
|
|
44968
|
+
host,
|
|
44969
|
+
userPreferences,
|
|
44970
|
+
options,
|
|
44971
|
+
forAutoImport
|
|
44972
|
+
);
|
|
44962
44973
|
cache == null ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, options, modulePaths, result);
|
|
44963
44974
|
return { moduleSpecifiers: result, computedWithoutCache };
|
|
44964
44975
|
}
|
|
44965
|
-
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}) {
|
|
44976
|
+
function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences, options = {}, forAutoImport) {
|
|
44966
44977
|
const info = getInfo(importingSourceFile.path, host);
|
|
44967
44978
|
const preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile);
|
|
44968
44979
|
const existingSpecifier = forEach(modulePaths, (modulePath) => forEach(
|
|
@@ -45019,7 +45030,7 @@ ${lanes.join("\n")}
|
|
|
45019
45030
|
redirectPathsSpecifiers = append(redirectPathsSpecifiers, local);
|
|
45020
45031
|
} else if (pathIsBareSpecifier(local)) {
|
|
45021
45032
|
pathsSpecifiers = append(pathsSpecifiers, local);
|
|
45022
|
-
} else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
45033
|
+
} else if (forAutoImport || !importedFileIsInNodeModules || modulePath.isInNodeModules) {
|
|
45023
45034
|
relativeSpecifiers = append(relativeSpecifiers, local);
|
|
45024
45035
|
}
|
|
45025
45036
|
}
|
|
@@ -141597,7 +141608,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
141597
141608
|
function getInfo4(context) {
|
|
141598
141609
|
if (isInJSFile(context.file) || !refactorKindBeginsWith(inferReturnTypeAction.kind, context.kind))
|
|
141599
141610
|
return;
|
|
141600
|
-
const token =
|
|
141611
|
+
const token = getTouchingPropertyName(context.file, context.startPosition);
|
|
141601
141612
|
const declaration = findAncestor(token, (n) => isBlock(n) || n.parent && isArrowFunction(n.parent) && (n.kind === 39 /* EqualsGreaterThanToken */ || n.parent.body === n) ? "quit" : isConvertibleDeclaration(n));
|
|
141602
141613
|
if (!declaration || !declaration.body || declaration.type) {
|
|
141603
141614
|
return { error: getLocaleSpecificMessage(Diagnostics.Return_type_must_be_inferred_from_a_function) };
|
|
@@ -148811,7 +148822,18 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
148811
148822
|
const getChecker = createGetChecker(program, host);
|
|
148812
148823
|
const moduleResolution = getEmitModuleResolutionKind(compilerOptions);
|
|
148813
148824
|
const rejectNodeModulesRelativePaths = moduleResolutionUsesNodeModules(moduleResolution);
|
|
148814
|
-
const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(
|
|
148825
|
+
const getModuleSpecifiers2 = fromCacheOnly ? (moduleSymbol) => ({ moduleSpecifiers: ts_moduleSpecifiers_exports.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }) : (moduleSymbol, checker) => ts_moduleSpecifiers_exports.getModuleSpecifiersWithCacheInfo(
|
|
148826
|
+
moduleSymbol,
|
|
148827
|
+
checker,
|
|
148828
|
+
compilerOptions,
|
|
148829
|
+
sourceFile,
|
|
148830
|
+
moduleSpecifierResolutionHost,
|
|
148831
|
+
preferences,
|
|
148832
|
+
/*options*/
|
|
148833
|
+
void 0,
|
|
148834
|
+
/*forAutoImport*/
|
|
148835
|
+
true
|
|
148836
|
+
);
|
|
148815
148837
|
let computedWithoutCacheCount = 0;
|
|
148816
148838
|
const fixes = flatMap(exportInfo, (exportInfo2, i) => {
|
|
148817
148839
|
const checker = getChecker(exportInfo2.isFromPackageJson);
|
|
@@ -157527,7 +157549,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
157527
157549
|
return createSimpleDetails(completionNameForLiteral(sourceFile, preferences, literal), "string" /* string */, typeof literal === "string" ? 8 /* stringLiteral */ : 7 /* numericLiteral */);
|
|
157528
157550
|
}
|
|
157529
157551
|
case "cases": {
|
|
157530
|
-
const
|
|
157552
|
+
const snippets = getExhaustiveCaseSnippets(
|
|
157531
157553
|
contextToken.parent,
|
|
157532
157554
|
sourceFile,
|
|
157533
157555
|
preferences,
|
|
@@ -157537,7 +157559,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
157537
157559
|
/*formatContext*/
|
|
157538
157560
|
void 0
|
|
157539
157561
|
);
|
|
157540
|
-
if (importAdder.hasFixes()) {
|
|
157562
|
+
if (snippets == null ? void 0 : snippets.importAdder.hasFixes()) {
|
|
157563
|
+
const { entry, importAdder } = snippets;
|
|
157541
157564
|
const changes = ts_textChanges_exports.ChangeTracker.with(
|
|
157542
157565
|
{ host, formatContext, preferences },
|
|
157543
157566
|
importAdder.writeFixes
|
|
@@ -157555,7 +157578,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
157555
157578
|
};
|
|
157556
157579
|
}
|
|
157557
157580
|
return {
|
|
157558
|
-
name
|
|
157581
|
+
name,
|
|
157559
157582
|
kind: "" /* unknown */,
|
|
157560
157583
|
kindModifiers: "",
|
|
157561
157584
|
displayParts: [],
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20231004`;
|
|
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.3.0-dev.
|
|
5
|
+
"version": "5.3.0-dev.20231004",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "375216469400fab44cbcec99e7d14eb8f96fd059"
|
|
117
117
|
}
|