typescript 5.3.0-dev.20231019 → 5.3.0-dev.20231021
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 +19 -16
- package/lib/tsserver.js +34 -26
- package/lib/typescript.d.ts +1 -0
- package/lib/typescript.js +34 -26
- 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.20231021`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -23694,17 +23694,18 @@ var asyncGeneratorHelper = {
|
|
|
23694
23694
|
scoped: false,
|
|
23695
23695
|
dependencies: [awaitHelper],
|
|
23696
23696
|
text: `
|
|
23697
|
-
|
|
23698
|
-
|
|
23699
|
-
|
|
23700
|
-
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
|
|
23704
|
-
|
|
23705
|
-
|
|
23706
|
-
|
|
23707
|
-
}
|
|
23697
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
23698
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
23699
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
23700
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
23701
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
23702
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
23703
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
23704
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
23705
|
+
function fulfill(value) { resume("next", value); }
|
|
23706
|
+
function reject(value) { resume("throw", value); }
|
|
23707
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
23708
|
+
};`
|
|
23708
23709
|
};
|
|
23709
23710
|
var asyncDelegator = {
|
|
23710
23711
|
name: "typescript:asyncDelegator",
|
|
@@ -65935,13 +65936,15 @@ function createTypeChecker(host) {
|
|
|
65935
65936
|
return void 0;
|
|
65936
65937
|
}
|
|
65937
65938
|
function getDiscriminantPropertyAccess(expr, computedType) {
|
|
65938
|
-
|
|
65939
|
-
if (type.flags & 1048576 /* Union */) {
|
|
65939
|
+
if (declaredType.flags & 1048576 /* Union */ || computedType.flags & 1048576 /* Union */) {
|
|
65940
65940
|
const access = getCandidateDiscriminantPropertyAccess(expr);
|
|
65941
65941
|
if (access) {
|
|
65942
65942
|
const name = getAccessedPropertyName(access);
|
|
65943
|
-
if (name
|
|
65944
|
-
|
|
65943
|
+
if (name) {
|
|
65944
|
+
const type = declaredType.flags & 1048576 /* Union */ && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType;
|
|
65945
|
+
if (isDiscriminantProperty(type, name)) {
|
|
65946
|
+
return access;
|
|
65947
|
+
}
|
|
65945
65948
|
}
|
|
65946
65949
|
}
|
|
65947
65950
|
}
|
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.20231021`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -27958,17 +27958,18 @@ var asyncGeneratorHelper = {
|
|
|
27958
27958
|
scoped: false,
|
|
27959
27959
|
dependencies: [awaitHelper],
|
|
27960
27960
|
text: `
|
|
27961
|
-
|
|
27962
|
-
|
|
27963
|
-
|
|
27964
|
-
|
|
27965
|
-
|
|
27966
|
-
|
|
27967
|
-
|
|
27968
|
-
|
|
27969
|
-
|
|
27970
|
-
|
|
27971
|
-
}
|
|
27961
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
27962
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
27963
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
27964
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
27965
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
27966
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
27967
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
27968
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
27969
|
+
function fulfill(value) { resume("next", value); }
|
|
27970
|
+
function reject(value) { resume("throw", value); }
|
|
27971
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
27972
|
+
};`
|
|
27972
27973
|
};
|
|
27973
27974
|
var asyncDelegator = {
|
|
27974
27975
|
name: "typescript:asyncDelegator",
|
|
@@ -70647,13 +70648,15 @@ function createTypeChecker(host) {
|
|
|
70647
70648
|
return void 0;
|
|
70648
70649
|
}
|
|
70649
70650
|
function getDiscriminantPropertyAccess(expr, computedType) {
|
|
70650
|
-
|
|
70651
|
-
if (type.flags & 1048576 /* Union */) {
|
|
70651
|
+
if (declaredType.flags & 1048576 /* Union */ || computedType.flags & 1048576 /* Union */) {
|
|
70652
70652
|
const access = getCandidateDiscriminantPropertyAccess(expr);
|
|
70653
70653
|
if (access) {
|
|
70654
70654
|
const name = getAccessedPropertyName(access);
|
|
70655
|
-
if (name
|
|
70656
|
-
|
|
70655
|
+
if (name) {
|
|
70656
|
+
const type = declaredType.flags & 1048576 /* Union */ && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType;
|
|
70657
|
+
if (isDiscriminantProperty(type, name)) {
|
|
70658
|
+
return access;
|
|
70659
|
+
}
|
|
70657
70660
|
}
|
|
70658
70661
|
}
|
|
70659
70662
|
}
|
|
@@ -149958,7 +149961,8 @@ function createImportAdderWorker(sourceFile, program, useAutoImportProvider, pre
|
|
|
149958
149961
|
defaultImport,
|
|
149959
149962
|
namedImports && arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, name })),
|
|
149960
149963
|
namespaceLikeImport,
|
|
149961
|
-
compilerOptions
|
|
149964
|
+
compilerOptions,
|
|
149965
|
+
preferences
|
|
149962
149966
|
);
|
|
149963
149967
|
newDeclarations = combine(newDeclarations, declarations);
|
|
149964
149968
|
});
|
|
@@ -150663,7 +150667,8 @@ function codeActionForFixWorker(changes, sourceFile, symbolName2, fix, includeSy
|
|
|
150663
150667
|
defaultImport,
|
|
150664
150668
|
namedImports,
|
|
150665
150669
|
namespaceLikeImport,
|
|
150666
|
-
program.getCompilerOptions()
|
|
150670
|
+
program.getCompilerOptions(),
|
|
150671
|
+
preferences
|
|
150667
150672
|
),
|
|
150668
150673
|
/*blankLineBetween*/
|
|
150669
150674
|
true,
|
|
@@ -150795,7 +150800,7 @@ function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImpor
|
|
|
150795
150800
|
const newSpecifiers = stableSort(
|
|
150796
150801
|
namedImports.map(
|
|
150797
150802
|
(namedImport) => factory.createImportSpecifier(
|
|
150798
|
-
(!clause.isTypeOnly || promoteFromTypeOnly2) &&
|
|
150803
|
+
(!clause.isTypeOnly || promoteFromTypeOnly2) && shouldUseTypeOnly(namedImport, preferences),
|
|
150799
150804
|
/*propertyName*/
|
|
150800
150805
|
void 0,
|
|
150801
150806
|
factory.createIdentifier(namedImport.name)
|
|
@@ -150859,21 +150864,24 @@ function getImportTypePrefix(moduleSpecifier, quotePreference) {
|
|
|
150859
150864
|
function needsTypeOnly({ addAsTypeOnly }) {
|
|
150860
150865
|
return addAsTypeOnly === 2 /* Required */;
|
|
150861
150866
|
}
|
|
150862
|
-
function
|
|
150867
|
+
function shouldUseTypeOnly(info, preferences) {
|
|
150868
|
+
return needsTypeOnly(info) || !!preferences.preferTypeOnlyAutoImports && info.addAsTypeOnly !== 4 /* NotAllowed */;
|
|
150869
|
+
}
|
|
150870
|
+
function getNewImports(moduleSpecifier, quotePreference, defaultImport, namedImports, namespaceLikeImport, compilerOptions, preferences) {
|
|
150863
150871
|
const quotedModuleSpecifier = makeStringLiteral(moduleSpecifier, quotePreference);
|
|
150864
150872
|
let statements;
|
|
150865
150873
|
if (defaultImport !== void 0 || (namedImports == null ? void 0 : namedImports.length)) {
|
|
150866
|
-
const topLevelTypeOnly = (!defaultImport || needsTypeOnly(defaultImport)) && every(namedImports, needsTypeOnly) || compilerOptions.verbatimModuleSyntax && (defaultImport == null ? void 0 : defaultImport.addAsTypeOnly) !== 4 /* NotAllowed */ && !some(namedImports, (i) => i.addAsTypeOnly === 4 /* NotAllowed */);
|
|
150874
|
+
const topLevelTypeOnly = (!defaultImport || needsTypeOnly(defaultImport)) && every(namedImports, needsTypeOnly) || (compilerOptions.verbatimModuleSyntax || preferences.preferTypeOnlyAutoImports) && (defaultImport == null ? void 0 : defaultImport.addAsTypeOnly) !== 4 /* NotAllowed */ && !some(namedImports, (i) => i.addAsTypeOnly === 4 /* NotAllowed */);
|
|
150867
150875
|
statements = combine(
|
|
150868
150876
|
statements,
|
|
150869
150877
|
makeImport(
|
|
150870
150878
|
defaultImport && factory.createIdentifier(defaultImport.name),
|
|
150871
150879
|
namedImports == null ? void 0 : namedImports.map(
|
|
150872
|
-
(
|
|
150873
|
-
!topLevelTypeOnly &&
|
|
150880
|
+
(namedImport) => factory.createImportSpecifier(
|
|
150881
|
+
!topLevelTypeOnly && shouldUseTypeOnly(namedImport, preferences),
|
|
150874
150882
|
/*propertyName*/
|
|
150875
150883
|
void 0,
|
|
150876
|
-
factory.createIdentifier(name)
|
|
150884
|
+
factory.createIdentifier(namedImport.name)
|
|
150877
150885
|
)
|
|
150878
150886
|
),
|
|
150879
150887
|
moduleSpecifier,
|
|
@@ -150886,14 +150894,14 @@ function getNewImports(moduleSpecifier, quotePreference, defaultImport, namedImp
|
|
|
150886
150894
|
const declaration = namespaceLikeImport.importKind === 3 /* CommonJS */ ? factory.createImportEqualsDeclaration(
|
|
150887
150895
|
/*modifiers*/
|
|
150888
150896
|
void 0,
|
|
150889
|
-
|
|
150897
|
+
shouldUseTypeOnly(namespaceLikeImport, preferences),
|
|
150890
150898
|
factory.createIdentifier(namespaceLikeImport.name),
|
|
150891
150899
|
factory.createExternalModuleReference(quotedModuleSpecifier)
|
|
150892
150900
|
) : factory.createImportDeclaration(
|
|
150893
150901
|
/*modifiers*/
|
|
150894
150902
|
void 0,
|
|
150895
150903
|
factory.createImportClause(
|
|
150896
|
-
|
|
150904
|
+
shouldUseTypeOnly(namespaceLikeImport, preferences),
|
|
150897
150905
|
/*name*/
|
|
150898
150906
|
void 0,
|
|
150899
150907
|
factory.createNamespaceImport(factory.createIdentifier(namespaceLikeImport.name))
|
package/lib/typescript.d.ts
CHANGED
|
@@ -8742,6 +8742,7 @@ declare namespace ts {
|
|
|
8742
8742
|
readonly interactiveInlayHints?: boolean;
|
|
8743
8743
|
readonly allowRenameOfImportPath?: boolean;
|
|
8744
8744
|
readonly autoImportFileExcludePatterns?: string[];
|
|
8745
|
+
readonly preferTypeOnlyAutoImports?: boolean;
|
|
8745
8746
|
readonly organizeImportsIgnoreCase?: "auto" | boolean;
|
|
8746
8747
|
readonly organizeImportsCollation?: "ordinal" | "unicode";
|
|
8747
8748
|
readonly organizeImportsLocale?: string;
|
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.20231021`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -25835,17 +25835,18 @@ ${lanes.join("\n")}
|
|
|
25835
25835
|
scoped: false,
|
|
25836
25836
|
dependencies: [awaitHelper],
|
|
25837
25837
|
text: `
|
|
25838
|
-
|
|
25839
|
-
|
|
25840
|
-
|
|
25841
|
-
|
|
25842
|
-
|
|
25843
|
-
|
|
25844
|
-
|
|
25845
|
-
|
|
25846
|
-
|
|
25847
|
-
|
|
25848
|
-
}
|
|
25838
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
25839
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
25840
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
25841
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
25842
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
25843
|
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
|
25844
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
25845
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
25846
|
+
function fulfill(value) { resume("next", value); }
|
|
25847
|
+
function reject(value) { resume("throw", value); }
|
|
25848
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
25849
|
+
};`
|
|
25849
25850
|
};
|
|
25850
25851
|
asyncDelegator = {
|
|
25851
25852
|
name: "typescript:asyncDelegator",
|
|
@@ -68414,13 +68415,15 @@ ${lanes.join("\n")}
|
|
|
68414
68415
|
return void 0;
|
|
68415
68416
|
}
|
|
68416
68417
|
function getDiscriminantPropertyAccess(expr, computedType) {
|
|
68417
|
-
|
|
68418
|
-
if (type.flags & 1048576 /* Union */) {
|
|
68418
|
+
if (declaredType.flags & 1048576 /* Union */ || computedType.flags & 1048576 /* Union */) {
|
|
68419
68419
|
const access = getCandidateDiscriminantPropertyAccess(expr);
|
|
68420
68420
|
if (access) {
|
|
68421
68421
|
const name = getAccessedPropertyName(access);
|
|
68422
|
-
if (name
|
|
68423
|
-
|
|
68422
|
+
if (name) {
|
|
68423
|
+
const type = declaredType.flags & 1048576 /* Union */ && isTypeSubsetOf(computedType, declaredType) ? declaredType : computedType;
|
|
68424
|
+
if (isDiscriminantProperty(type, name)) {
|
|
68425
|
+
return access;
|
|
68426
|
+
}
|
|
68424
68427
|
}
|
|
68425
68428
|
}
|
|
68426
68429
|
}
|
|
@@ -148679,7 +148682,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
148679
148682
|
defaultImport,
|
|
148680
148683
|
namedImports && arrayFrom(namedImports.entries(), ([name, addAsTypeOnly]) => ({ addAsTypeOnly, name })),
|
|
148681
148684
|
namespaceLikeImport,
|
|
148682
|
-
compilerOptions
|
|
148685
|
+
compilerOptions,
|
|
148686
|
+
preferences
|
|
148683
148687
|
);
|
|
148684
148688
|
newDeclarations = combine(newDeclarations, declarations);
|
|
148685
148689
|
});
|
|
@@ -149384,7 +149388,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
149384
149388
|
defaultImport,
|
|
149385
149389
|
namedImports,
|
|
149386
149390
|
namespaceLikeImport,
|
|
149387
|
-
program.getCompilerOptions()
|
|
149391
|
+
program.getCompilerOptions(),
|
|
149392
|
+
preferences
|
|
149388
149393
|
),
|
|
149389
149394
|
/*blankLineBetween*/
|
|
149390
149395
|
true,
|
|
@@ -149516,7 +149521,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
149516
149521
|
const newSpecifiers = stableSort(
|
|
149517
149522
|
namedImports.map(
|
|
149518
149523
|
(namedImport) => factory.createImportSpecifier(
|
|
149519
|
-
(!clause.isTypeOnly || promoteFromTypeOnly2) &&
|
|
149524
|
+
(!clause.isTypeOnly || promoteFromTypeOnly2) && shouldUseTypeOnly(namedImport, preferences),
|
|
149520
149525
|
/*propertyName*/
|
|
149521
149526
|
void 0,
|
|
149522
149527
|
factory.createIdentifier(namedImport.name)
|
|
@@ -149580,21 +149585,24 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
149580
149585
|
function needsTypeOnly({ addAsTypeOnly }) {
|
|
149581
149586
|
return addAsTypeOnly === 2 /* Required */;
|
|
149582
149587
|
}
|
|
149583
|
-
function
|
|
149588
|
+
function shouldUseTypeOnly(info, preferences) {
|
|
149589
|
+
return needsTypeOnly(info) || !!preferences.preferTypeOnlyAutoImports && info.addAsTypeOnly !== 4 /* NotAllowed */;
|
|
149590
|
+
}
|
|
149591
|
+
function getNewImports(moduleSpecifier, quotePreference, defaultImport, namedImports, namespaceLikeImport, compilerOptions, preferences) {
|
|
149584
149592
|
const quotedModuleSpecifier = makeStringLiteral(moduleSpecifier, quotePreference);
|
|
149585
149593
|
let statements;
|
|
149586
149594
|
if (defaultImport !== void 0 || (namedImports == null ? void 0 : namedImports.length)) {
|
|
149587
|
-
const topLevelTypeOnly = (!defaultImport || needsTypeOnly(defaultImport)) && every(namedImports, needsTypeOnly) || compilerOptions.verbatimModuleSyntax && (defaultImport == null ? void 0 : defaultImport.addAsTypeOnly) !== 4 /* NotAllowed */ && !some(namedImports, (i) => i.addAsTypeOnly === 4 /* NotAllowed */);
|
|
149595
|
+
const topLevelTypeOnly = (!defaultImport || needsTypeOnly(defaultImport)) && every(namedImports, needsTypeOnly) || (compilerOptions.verbatimModuleSyntax || preferences.preferTypeOnlyAutoImports) && (defaultImport == null ? void 0 : defaultImport.addAsTypeOnly) !== 4 /* NotAllowed */ && !some(namedImports, (i) => i.addAsTypeOnly === 4 /* NotAllowed */);
|
|
149588
149596
|
statements = combine(
|
|
149589
149597
|
statements,
|
|
149590
149598
|
makeImport(
|
|
149591
149599
|
defaultImport && factory.createIdentifier(defaultImport.name),
|
|
149592
149600
|
namedImports == null ? void 0 : namedImports.map(
|
|
149593
|
-
(
|
|
149594
|
-
!topLevelTypeOnly &&
|
|
149601
|
+
(namedImport) => factory.createImportSpecifier(
|
|
149602
|
+
!topLevelTypeOnly && shouldUseTypeOnly(namedImport, preferences),
|
|
149595
149603
|
/*propertyName*/
|
|
149596
149604
|
void 0,
|
|
149597
|
-
factory.createIdentifier(name)
|
|
149605
|
+
factory.createIdentifier(namedImport.name)
|
|
149598
149606
|
)
|
|
149599
149607
|
),
|
|
149600
149608
|
moduleSpecifier,
|
|
@@ -149607,14 +149615,14 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
149607
149615
|
const declaration = namespaceLikeImport.importKind === 3 /* CommonJS */ ? factory.createImportEqualsDeclaration(
|
|
149608
149616
|
/*modifiers*/
|
|
149609
149617
|
void 0,
|
|
149610
|
-
|
|
149618
|
+
shouldUseTypeOnly(namespaceLikeImport, preferences),
|
|
149611
149619
|
factory.createIdentifier(namespaceLikeImport.name),
|
|
149612
149620
|
factory.createExternalModuleReference(quotedModuleSpecifier)
|
|
149613
149621
|
) : factory.createImportDeclaration(
|
|
149614
149622
|
/*modifiers*/
|
|
149615
149623
|
void 0,
|
|
149616
149624
|
factory.createImportClause(
|
|
149617
|
-
|
|
149625
|
+
shouldUseTypeOnly(namespaceLikeImport, preferences),
|
|
149618
149626
|
/*name*/
|
|
149619
149627
|
void 0,
|
|
149620
149628
|
factory.createNamespaceImport(factory.createIdentifier(namespaceLikeImport.name))
|
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.20231021`;
|
|
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.20231021",
|
|
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": "
|
|
117
|
+
"gitHead": "8af8f3c4d1e5cc6654916de9f42e9ba370513157"
|
|
118
118
|
}
|