typescript 4.6.0-dev.20211106 → 4.6.0-dev.20211110
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/lib.es2022.array.d.ts +2 -2
- package/lib/tsc.js +1 -1
- package/lib/tsserver.js +11 -12
- package/lib/tsserverlibrary.js +11 -12
- package/lib/typescript.js +11 -12
- package/lib/typescriptServices.js +11 -12
- package/lib/typingsInstaller.js +2 -3
- package/package.json +1 -1
|
@@ -111,7 +111,7 @@ interface BigInt64Array {
|
|
|
111
111
|
* Returns the item located at the specified index.
|
|
112
112
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
113
113
|
*/
|
|
114
|
-
at(index: number):
|
|
114
|
+
at(index: number): bigint | undefined;
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
interface BigUint64Array {
|
|
@@ -119,5 +119,5 @@ interface BigUint64Array {
|
|
|
119
119
|
* Returns the item located at the specified index.
|
|
120
120
|
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
|
|
121
121
|
*/
|
|
122
|
-
at(index: number):
|
|
122
|
+
at(index: number): bigint | undefined;
|
|
123
123
|
}
|
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.6";
|
|
72
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
72
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211110";
|
|
73
73
|
var NativeCollections;
|
|
74
74
|
(function (NativeCollections) {
|
|
75
75
|
function tryGetNativeMap() {
|
package/lib/tsserver.js
CHANGED
|
@@ -100,7 +100,7 @@ var ts;
|
|
|
100
100
|
// The following is baselined as a literal template type without intervention
|
|
101
101
|
/** The version of the TypeScript compiler release */
|
|
102
102
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
103
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
103
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211110";
|
|
104
104
|
/* @internal */
|
|
105
105
|
var Comparison;
|
|
106
106
|
(function (Comparison) {
|
|
@@ -85908,8 +85908,7 @@ var ts;
|
|
|
85908
85908
|
}
|
|
85909
85909
|
// Modifiers are never allowed on properties except for 'async' on a method declaration
|
|
85910
85910
|
if (prop.modifiers) {
|
|
85911
|
-
|
|
85912
|
-
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
|
|
85911
|
+
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
|
|
85913
85912
|
var mod = _c[_b];
|
|
85914
85913
|
if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
|
|
85915
85914
|
grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
|
|
@@ -128813,7 +128812,7 @@ var ts;
|
|
|
128813
128812
|
removeComments: true,
|
|
128814
128813
|
module: options.module,
|
|
128815
128814
|
target: options.target,
|
|
128816
|
-
omitTrailingSemicolon:
|
|
128815
|
+
omitTrailingSemicolon: false,
|
|
128817
128816
|
newLine: ts.getNewLineKind(ts.getNewLineCharacter(options, ts.maybeBind(host, host.getNewLine))),
|
|
128818
128817
|
});
|
|
128819
128818
|
var importAdder = ts.codefix.createImportAdder(sourceFile, program, preferences, host);
|
|
@@ -128871,7 +128870,7 @@ var ts;
|
|
|
128871
128870
|
completionNodes.push(node);
|
|
128872
128871
|
}, body, 2 /* Property */, isAbstract);
|
|
128873
128872
|
if (completionNodes.length) {
|
|
128874
|
-
insertText = printer.printSnippetList(1 /* MultiLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
|
|
128873
|
+
insertText = printer.printSnippetList(1 /* MultiLine */ | 131072 /* NoTrailingNewLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
|
|
128875
128874
|
}
|
|
128876
128875
|
return { insertText: insertText, isSnippet: isSnippet, importAdder: importAdder };
|
|
128877
128876
|
}
|
|
@@ -131065,6 +131064,8 @@ var ts;
|
|
|
131065
131064
|
// function f<T>(x: T) {}
|
|
131066
131065
|
// f({ abc/**/: "" }) // `abc` is a member of `T` but only because it declares itself
|
|
131067
131066
|
function hasDeclarationOtherThanSelf(member) {
|
|
131067
|
+
if (!ts.length(member.declarations))
|
|
131068
|
+
return true;
|
|
131068
131069
|
return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });
|
|
131069
131070
|
}
|
|
131070
131071
|
}
|
|
@@ -133781,7 +133782,7 @@ var ts;
|
|
|
133781
133782
|
var token = _a[_i];
|
|
133782
133783
|
if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)
|
|
133783
133784
|
continue;
|
|
133784
|
-
var referenceSymbol = checker.getSymbolAtLocation(token);
|
|
133785
|
+
var referenceSymbol = checker.getSymbolAtLocation(token);
|
|
133785
133786
|
if (referenceSymbol === symbol
|
|
133786
133787
|
|| checker.getShorthandAssignmentValueSymbol(token.parent) === symbol
|
|
133787
133788
|
|| ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {
|
|
@@ -147839,8 +147840,6 @@ var ts;
|
|
|
147839
147840
|
var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {
|
|
147840
147841
|
return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)
|
|
147841
147842
|
? undefined
|
|
147842
|
-
// (TODO: GH#18217)
|
|
147843
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
147844
147843
|
: makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);
|
|
147845
147844
|
});
|
|
147846
147845
|
if (importSpecifiers) {
|
|
@@ -155216,8 +155215,7 @@ var ts;
|
|
|
155216
155215
|
return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };
|
|
155217
155216
|
}
|
|
155218
155217
|
var statements = [];
|
|
155219
|
-
var
|
|
155220
|
-
for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {
|
|
155218
|
+
for (var _i = 0, _a = start.parent.statements; _i < _a.length; _i++) {
|
|
155221
155219
|
var statement = _a[_i];
|
|
155222
155220
|
if (statement === start || statements.length) {
|
|
155223
155221
|
var errors_1 = checkNode(statement);
|
|
@@ -159353,10 +159351,11 @@ var ts;
|
|
|
159353
159351
|
}
|
|
159354
159352
|
function findBaseOfDeclaration(checker, declaration, cb) {
|
|
159355
159353
|
var _a;
|
|
159354
|
+
if (ts.hasStaticModifier(declaration))
|
|
159355
|
+
return;
|
|
159356
159356
|
var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 170 /* Constructor */ ? declaration.parent.parent : declaration.parent;
|
|
159357
|
-
if (!classOrInterfaceDeclaration)
|
|
159357
|
+
if (!classOrInterfaceDeclaration)
|
|
159358
159358
|
return;
|
|
159359
|
-
}
|
|
159360
159359
|
return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {
|
|
159361
159360
|
var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);
|
|
159362
159361
|
return symbol ? cb(symbol) : undefined;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211110";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -86102,8 +86102,7 @@ var ts;
|
|
|
86102
86102
|
}
|
|
86103
86103
|
// Modifiers are never allowed on properties except for 'async' on a method declaration
|
|
86104
86104
|
if (prop.modifiers) {
|
|
86105
|
-
|
|
86106
|
-
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
|
|
86105
|
+
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
|
|
86107
86106
|
var mod = _c[_b];
|
|
86108
86107
|
if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
|
|
86109
86108
|
grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
|
|
@@ -129395,7 +129394,7 @@ var ts;
|
|
|
129395
129394
|
removeComments: true,
|
|
129396
129395
|
module: options.module,
|
|
129397
129396
|
target: options.target,
|
|
129398
|
-
omitTrailingSemicolon:
|
|
129397
|
+
omitTrailingSemicolon: false,
|
|
129399
129398
|
newLine: ts.getNewLineKind(ts.getNewLineCharacter(options, ts.maybeBind(host, host.getNewLine))),
|
|
129400
129399
|
});
|
|
129401
129400
|
var importAdder = ts.codefix.createImportAdder(sourceFile, program, preferences, host);
|
|
@@ -129453,7 +129452,7 @@ var ts;
|
|
|
129453
129452
|
completionNodes.push(node);
|
|
129454
129453
|
}, body, 2 /* Property */, isAbstract);
|
|
129455
129454
|
if (completionNodes.length) {
|
|
129456
|
-
insertText = printer.printSnippetList(1 /* MultiLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
|
|
129455
|
+
insertText = printer.printSnippetList(1 /* MultiLine */ | 131072 /* NoTrailingNewLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
|
|
129457
129456
|
}
|
|
129458
129457
|
return { insertText: insertText, isSnippet: isSnippet, importAdder: importAdder };
|
|
129459
129458
|
}
|
|
@@ -131647,6 +131646,8 @@ var ts;
|
|
|
131647
131646
|
// function f<T>(x: T) {}
|
|
131648
131647
|
// f({ abc/**/: "" }) // `abc` is a member of `T` but only because it declares itself
|
|
131649
131648
|
function hasDeclarationOtherThanSelf(member) {
|
|
131649
|
+
if (!ts.length(member.declarations))
|
|
131650
|
+
return true;
|
|
131650
131651
|
return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });
|
|
131651
131652
|
}
|
|
131652
131653
|
}
|
|
@@ -134363,7 +134364,7 @@ var ts;
|
|
|
134363
134364
|
var token = _a[_i];
|
|
134364
134365
|
if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)
|
|
134365
134366
|
continue;
|
|
134366
|
-
var referenceSymbol = checker.getSymbolAtLocation(token);
|
|
134367
|
+
var referenceSymbol = checker.getSymbolAtLocation(token);
|
|
134367
134368
|
if (referenceSymbol === symbol
|
|
134368
134369
|
|| checker.getShorthandAssignmentValueSymbol(token.parent) === symbol
|
|
134369
134370
|
|| ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {
|
|
@@ -148421,8 +148422,6 @@ var ts;
|
|
|
148421
148422
|
var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {
|
|
148422
148423
|
return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)
|
|
148423
148424
|
? undefined
|
|
148424
|
-
// (TODO: GH#18217)
|
|
148425
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
148426
148425
|
: makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);
|
|
148427
148426
|
});
|
|
148428
148427
|
if (importSpecifiers) {
|
|
@@ -155798,8 +155797,7 @@ var ts;
|
|
|
155798
155797
|
return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };
|
|
155799
155798
|
}
|
|
155800
155799
|
var statements = [];
|
|
155801
|
-
var
|
|
155802
|
-
for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {
|
|
155800
|
+
for (var _i = 0, _a = start.parent.statements; _i < _a.length; _i++) {
|
|
155803
155801
|
var statement = _a[_i];
|
|
155804
155802
|
if (statement === start || statements.length) {
|
|
155805
155803
|
var errors_1 = checkNode(statement);
|
|
@@ -159935,10 +159933,11 @@ var ts;
|
|
|
159935
159933
|
}
|
|
159936
159934
|
function findBaseOfDeclaration(checker, declaration, cb) {
|
|
159937
159935
|
var _a;
|
|
159936
|
+
if (ts.hasStaticModifier(declaration))
|
|
159937
|
+
return;
|
|
159938
159938
|
var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 170 /* Constructor */ ? declaration.parent.parent : declaration.parent;
|
|
159939
|
-
if (!classOrInterfaceDeclaration)
|
|
159939
|
+
if (!classOrInterfaceDeclaration)
|
|
159940
159940
|
return;
|
|
159941
|
-
}
|
|
159942
159941
|
return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {
|
|
159943
159942
|
var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);
|
|
159944
159943
|
return symbol ? cb(symbol) : undefined;
|
package/lib/typescript.js
CHANGED
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211110";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -86102,8 +86102,7 @@ var ts;
|
|
|
86102
86102
|
}
|
|
86103
86103
|
// Modifiers are never allowed on properties except for 'async' on a method declaration
|
|
86104
86104
|
if (prop.modifiers) {
|
|
86105
|
-
|
|
86106
|
-
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
|
|
86105
|
+
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
|
|
86107
86106
|
var mod = _c[_b];
|
|
86108
86107
|
if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
|
|
86109
86108
|
grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
|
|
@@ -129395,7 +129394,7 @@ var ts;
|
|
|
129395
129394
|
removeComments: true,
|
|
129396
129395
|
module: options.module,
|
|
129397
129396
|
target: options.target,
|
|
129398
|
-
omitTrailingSemicolon:
|
|
129397
|
+
omitTrailingSemicolon: false,
|
|
129399
129398
|
newLine: ts.getNewLineKind(ts.getNewLineCharacter(options, ts.maybeBind(host, host.getNewLine))),
|
|
129400
129399
|
});
|
|
129401
129400
|
var importAdder = ts.codefix.createImportAdder(sourceFile, program, preferences, host);
|
|
@@ -129453,7 +129452,7 @@ var ts;
|
|
|
129453
129452
|
completionNodes.push(node);
|
|
129454
129453
|
}, body, 2 /* Property */, isAbstract);
|
|
129455
129454
|
if (completionNodes.length) {
|
|
129456
|
-
insertText = printer.printSnippetList(1 /* MultiLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
|
|
129455
|
+
insertText = printer.printSnippetList(1 /* MultiLine */ | 131072 /* NoTrailingNewLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
|
|
129457
129456
|
}
|
|
129458
129457
|
return { insertText: insertText, isSnippet: isSnippet, importAdder: importAdder };
|
|
129459
129458
|
}
|
|
@@ -131647,6 +131646,8 @@ var ts;
|
|
|
131647
131646
|
// function f<T>(x: T) {}
|
|
131648
131647
|
// f({ abc/**/: "" }) // `abc` is a member of `T` but only because it declares itself
|
|
131649
131648
|
function hasDeclarationOtherThanSelf(member) {
|
|
131649
|
+
if (!ts.length(member.declarations))
|
|
131650
|
+
return true;
|
|
131650
131651
|
return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });
|
|
131651
131652
|
}
|
|
131652
131653
|
}
|
|
@@ -134363,7 +134364,7 @@ var ts;
|
|
|
134363
134364
|
var token = _a[_i];
|
|
134364
134365
|
if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)
|
|
134365
134366
|
continue;
|
|
134366
|
-
var referenceSymbol = checker.getSymbolAtLocation(token);
|
|
134367
|
+
var referenceSymbol = checker.getSymbolAtLocation(token);
|
|
134367
134368
|
if (referenceSymbol === symbol
|
|
134368
134369
|
|| checker.getShorthandAssignmentValueSymbol(token.parent) === symbol
|
|
134369
134370
|
|| ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {
|
|
@@ -148421,8 +148422,6 @@ var ts;
|
|
|
148421
148422
|
var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {
|
|
148422
148423
|
return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)
|
|
148423
148424
|
? undefined
|
|
148424
|
-
// (TODO: GH#18217)
|
|
148425
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
148426
148425
|
: makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);
|
|
148427
148426
|
});
|
|
148428
148427
|
if (importSpecifiers) {
|
|
@@ -155798,8 +155797,7 @@ var ts;
|
|
|
155798
155797
|
return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };
|
|
155799
155798
|
}
|
|
155800
155799
|
var statements = [];
|
|
155801
|
-
var
|
|
155802
|
-
for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {
|
|
155800
|
+
for (var _i = 0, _a = start.parent.statements; _i < _a.length; _i++) {
|
|
155803
155801
|
var statement = _a[_i];
|
|
155804
155802
|
if (statement === start || statements.length) {
|
|
155805
155803
|
var errors_1 = checkNode(statement);
|
|
@@ -159935,10 +159933,11 @@ var ts;
|
|
|
159935
159933
|
}
|
|
159936
159934
|
function findBaseOfDeclaration(checker, declaration, cb) {
|
|
159937
159935
|
var _a;
|
|
159936
|
+
if (ts.hasStaticModifier(declaration))
|
|
159937
|
+
return;
|
|
159938
159938
|
var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 170 /* Constructor */ ? declaration.parent.parent : declaration.parent;
|
|
159939
|
-
if (!classOrInterfaceDeclaration)
|
|
159939
|
+
if (!classOrInterfaceDeclaration)
|
|
159940
159940
|
return;
|
|
159941
|
-
}
|
|
159942
159941
|
return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {
|
|
159943
159942
|
var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);
|
|
159944
159943
|
return symbol ? cb(symbol) : undefined;
|
|
@@ -294,7 +294,7 @@ var ts;
|
|
|
294
294
|
// The following is baselined as a literal template type without intervention
|
|
295
295
|
/** The version of the TypeScript compiler release */
|
|
296
296
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
297
|
-
ts.version = ts.versionMajorMinor + ".0-dev.
|
|
297
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211110";
|
|
298
298
|
/* @internal */
|
|
299
299
|
var Comparison;
|
|
300
300
|
(function (Comparison) {
|
|
@@ -86102,8 +86102,7 @@ var ts;
|
|
|
86102
86102
|
}
|
|
86103
86103
|
// Modifiers are never allowed on properties except for 'async' on a method declaration
|
|
86104
86104
|
if (prop.modifiers) {
|
|
86105
|
-
|
|
86106
|
-
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
|
|
86105
|
+
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
|
|
86107
86106
|
var mod = _c[_b];
|
|
86108
86107
|
if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
|
|
86109
86108
|
grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
|
|
@@ -129395,7 +129394,7 @@ var ts;
|
|
|
129395
129394
|
removeComments: true,
|
|
129396
129395
|
module: options.module,
|
|
129397
129396
|
target: options.target,
|
|
129398
|
-
omitTrailingSemicolon:
|
|
129397
|
+
omitTrailingSemicolon: false,
|
|
129399
129398
|
newLine: ts.getNewLineKind(ts.getNewLineCharacter(options, ts.maybeBind(host, host.getNewLine))),
|
|
129400
129399
|
});
|
|
129401
129400
|
var importAdder = ts.codefix.createImportAdder(sourceFile, program, preferences, host);
|
|
@@ -129453,7 +129452,7 @@ var ts;
|
|
|
129453
129452
|
completionNodes.push(node);
|
|
129454
129453
|
}, body, 2 /* Property */, isAbstract);
|
|
129455
129454
|
if (completionNodes.length) {
|
|
129456
|
-
insertText = printer.printSnippetList(1 /* MultiLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
|
|
129455
|
+
insertText = printer.printSnippetList(1 /* MultiLine */ | 131072 /* NoTrailingNewLine */, ts.factory.createNodeArray(completionNodes), sourceFile);
|
|
129457
129456
|
}
|
|
129458
129457
|
return { insertText: insertText, isSnippet: isSnippet, importAdder: importAdder };
|
|
129459
129458
|
}
|
|
@@ -131647,6 +131646,8 @@ var ts;
|
|
|
131647
131646
|
// function f<T>(x: T) {}
|
|
131648
131647
|
// f({ abc/**/: "" }) // `abc` is a member of `T` but only because it declares itself
|
|
131649
131648
|
function hasDeclarationOtherThanSelf(member) {
|
|
131649
|
+
if (!ts.length(member.declarations))
|
|
131650
|
+
return true;
|
|
131650
131651
|
return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });
|
|
131651
131652
|
}
|
|
131652
131653
|
}
|
|
@@ -134363,7 +134364,7 @@ var ts;
|
|
|
134363
134364
|
var token = _a[_i];
|
|
134364
134365
|
if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)
|
|
134365
134366
|
continue;
|
|
134366
|
-
var referenceSymbol = checker.getSymbolAtLocation(token);
|
|
134367
|
+
var referenceSymbol = checker.getSymbolAtLocation(token);
|
|
134367
134368
|
if (referenceSymbol === symbol
|
|
134368
134369
|
|| checker.getShorthandAssignmentValueSymbol(token.parent) === symbol
|
|
134369
134370
|
|| ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {
|
|
@@ -148421,8 +148422,6 @@ var ts;
|
|
|
148421
148422
|
var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {
|
|
148422
148423
|
return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)
|
|
148423
148424
|
? undefined
|
|
148424
|
-
// (TODO: GH#18217)
|
|
148425
|
-
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
148426
148425
|
: makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);
|
|
148427
148426
|
});
|
|
148428
148427
|
if (importSpecifiers) {
|
|
@@ -155798,8 +155797,7 @@ var ts;
|
|
|
155798
155797
|
return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };
|
|
155799
155798
|
}
|
|
155800
155799
|
var statements = [];
|
|
155801
|
-
var
|
|
155802
|
-
for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {
|
|
155800
|
+
for (var _i = 0, _a = start.parent.statements; _i < _a.length; _i++) {
|
|
155803
155801
|
var statement = _a[_i];
|
|
155804
155802
|
if (statement === start || statements.length) {
|
|
155805
155803
|
var errors_1 = checkNode(statement);
|
|
@@ -159935,10 +159933,11 @@ var ts;
|
|
|
159935
159933
|
}
|
|
159936
159934
|
function findBaseOfDeclaration(checker, declaration, cb) {
|
|
159937
159935
|
var _a;
|
|
159936
|
+
if (ts.hasStaticModifier(declaration))
|
|
159937
|
+
return;
|
|
159938
159938
|
var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 170 /* Constructor */ ? declaration.parent.parent : declaration.parent;
|
|
159939
|
-
if (!classOrInterfaceDeclaration)
|
|
159939
|
+
if (!classOrInterfaceDeclaration)
|
|
159940
159940
|
return;
|
|
159941
|
-
}
|
|
159942
159941
|
return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {
|
|
159943
159942
|
var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);
|
|
159944
159943
|
return symbol ? cb(symbol) : undefined;
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -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.
|
|
92
|
+
ts.version = ts.versionMajorMinor + ".0-dev.20211110";
|
|
93
93
|
/* @internal */
|
|
94
94
|
var Comparison;
|
|
95
95
|
(function (Comparison) {
|
|
@@ -85897,8 +85897,7 @@ var ts;
|
|
|
85897
85897
|
}
|
|
85898
85898
|
// Modifiers are never allowed on properties except for 'async' on a method declaration
|
|
85899
85899
|
if (prop.modifiers) {
|
|
85900
|
-
|
|
85901
|
-
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955
|
|
85900
|
+
for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) {
|
|
85902
85901
|
var mod = _c[_b];
|
|
85903
85902
|
if (mod.kind !== 131 /* AsyncKeyword */ || prop.kind !== 168 /* MethodDeclaration */) {
|
|
85904
85903
|
grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));
|
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.6.0-dev.
|
|
5
|
+
"version": "4.6.0-dev.20211110",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|