@typescript-deploys/pr-build 5.1.0-pr-49863-41 → 5.1.0-pr-53388-13
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.es2015.core.d.ts +2 -2
- package/lib/lib.es2020.bigint.d.ts +4 -4
- package/lib/lib.es5.d.ts +18 -18
- package/lib/tsc.js +12 -45
- package/lib/tsserver.js +16 -49
- package/lib/tsserverlibrary.d.ts +0 -1
- package/lib/tsserverlibrary.js +16 -49
- package/lib/typescript.d.ts +0 -1
- package/lib/typescript.js +16 -49
- package/lib/typingsInstaller.js +3 -13
- package/package.json +2 -2
package/lib/lib.es2015.core.d.ts
CHANGED
|
@@ -56,10 +56,10 @@ interface Array<T> {
|
|
|
56
56
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
57
57
|
* length of the array.
|
|
58
58
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
59
|
-
* is treated as length+end.
|
|
59
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
60
60
|
* @param end If not specified, length of the this object is used as its default value.
|
|
61
61
|
*/
|
|
62
|
-
copyWithin(target: number, start
|
|
62
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
interface ArrayConstructor {
|
|
@@ -165,10 +165,10 @@ interface BigInt64Array {
|
|
|
165
165
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
166
166
|
* length of the array.
|
|
167
167
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
168
|
-
* is treated as length+end.
|
|
168
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
169
169
|
* @param end If not specified, length of the this object is used as its default value.
|
|
170
170
|
*/
|
|
171
|
-
copyWithin(target: number, start
|
|
171
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
172
172
|
|
|
173
173
|
/** Yields index, value pairs for every entry in the array. */
|
|
174
174
|
entries(): IterableIterator<[number, bigint]>;
|
|
@@ -437,10 +437,10 @@ interface BigUint64Array {
|
|
|
437
437
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
438
438
|
* length of the array.
|
|
439
439
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
440
|
-
* is treated as length+end.
|
|
440
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
441
441
|
* @param end If not specified, length of the this object is used as its default value.
|
|
442
442
|
*/
|
|
443
|
-
copyWithin(target: number, start
|
|
443
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
444
444
|
|
|
445
445
|
/** Yields index, value pairs for every entry in the array. */
|
|
446
446
|
entries(): IterableIterator<[number, bigint]>;
|
package/lib/lib.es5.d.ts
CHANGED
|
@@ -1867,10 +1867,10 @@ interface Int8Array {
|
|
|
1867
1867
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
1868
1868
|
* length of the array.
|
|
1869
1869
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
1870
|
-
* is treated as length+end.
|
|
1870
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
1871
1871
|
* @param end If not specified, length of the this object is used as its default value.
|
|
1872
1872
|
*/
|
|
1873
|
-
copyWithin(target: number, start
|
|
1873
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
1874
1874
|
|
|
1875
1875
|
/**
|
|
1876
1876
|
* Determines whether all the members of an array satisfy the specified test.
|
|
@@ -2149,10 +2149,10 @@ interface Uint8Array {
|
|
|
2149
2149
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
2150
2150
|
* length of the array.
|
|
2151
2151
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
2152
|
-
* is treated as length+end.
|
|
2152
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
2153
2153
|
* @param end If not specified, length of the this object is used as its default value.
|
|
2154
2154
|
*/
|
|
2155
|
-
copyWithin(target: number, start
|
|
2155
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
2156
2156
|
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Determines whether all the members of an array satisfy the specified test.
|
|
@@ -2431,10 +2431,10 @@ interface Uint8ClampedArray {
|
|
|
2431
2431
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
2432
2432
|
* length of the array.
|
|
2433
2433
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
2434
|
-
* is treated as length+end.
|
|
2434
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
2435
2435
|
* @param end If not specified, length of the this object is used as its default value.
|
|
2436
2436
|
*/
|
|
2437
|
-
copyWithin(target: number, start
|
|
2437
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
2438
2438
|
|
|
2439
2439
|
/**
|
|
2440
2440
|
* Determines whether all the members of an array satisfy the specified test.
|
|
@@ -2712,10 +2712,10 @@ interface Int16Array {
|
|
|
2712
2712
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
2713
2713
|
* length of the array.
|
|
2714
2714
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
2715
|
-
* is treated as length+end.
|
|
2715
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
2716
2716
|
* @param end If not specified, length of the this object is used as its default value.
|
|
2717
2717
|
*/
|
|
2718
|
-
copyWithin(target: number, start
|
|
2718
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
2719
2719
|
|
|
2720
2720
|
/**
|
|
2721
2721
|
* Determines whether all the members of an array satisfy the specified test.
|
|
@@ -2994,10 +2994,10 @@ interface Uint16Array {
|
|
|
2994
2994
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
2995
2995
|
* length of the array.
|
|
2996
2996
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
2997
|
-
* is treated as length+end.
|
|
2997
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
2998
2998
|
* @param end If not specified, length of the this object is used as its default value.
|
|
2999
2999
|
*/
|
|
3000
|
-
copyWithin(target: number, start
|
|
3000
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
3001
3001
|
|
|
3002
3002
|
/**
|
|
3003
3003
|
* Determines whether all the members of an array satisfy the specified test.
|
|
@@ -3276,10 +3276,10 @@ interface Int32Array {
|
|
|
3276
3276
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
3277
3277
|
* length of the array.
|
|
3278
3278
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
3279
|
-
* is treated as length+end.
|
|
3279
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
3280
3280
|
* @param end If not specified, length of the this object is used as its default value.
|
|
3281
3281
|
*/
|
|
3282
|
-
copyWithin(target: number, start
|
|
3282
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
3283
3283
|
|
|
3284
3284
|
/**
|
|
3285
3285
|
* Determines whether all the members of an array satisfy the specified test.
|
|
@@ -3558,10 +3558,10 @@ interface Uint32Array {
|
|
|
3558
3558
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
3559
3559
|
* length of the array.
|
|
3560
3560
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
3561
|
-
* is treated as length+end.
|
|
3561
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
3562
3562
|
* @param end If not specified, length of the this object is used as its default value.
|
|
3563
3563
|
*/
|
|
3564
|
-
copyWithin(target: number, start
|
|
3564
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
3565
3565
|
|
|
3566
3566
|
/**
|
|
3567
3567
|
* Determines whether all the members of an array satisfy the specified test.
|
|
@@ -3839,10 +3839,10 @@ interface Float32Array {
|
|
|
3839
3839
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
3840
3840
|
* length of the array.
|
|
3841
3841
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
3842
|
-
* is treated as length+end.
|
|
3842
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
3843
3843
|
* @param end If not specified, length of the this object is used as its default value.
|
|
3844
3844
|
*/
|
|
3845
|
-
copyWithin(target: number, start
|
|
3845
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
3846
3846
|
|
|
3847
3847
|
/**
|
|
3848
3848
|
* Determines whether all the members of an array satisfy the specified test.
|
|
@@ -4122,10 +4122,10 @@ interface Float64Array {
|
|
|
4122
4122
|
* @param target If target is negative, it is treated as length+target where length is the
|
|
4123
4123
|
* length of the array.
|
|
4124
4124
|
* @param start If start is negative, it is treated as length+start. If end is negative, it
|
|
4125
|
-
* is treated as length+end.
|
|
4125
|
+
* is treated as length+end. If start is omitted, `0` is used.
|
|
4126
4126
|
* @param end If not specified, length of the this object is used as its default value.
|
|
4127
4127
|
*/
|
|
4128
|
-
copyWithin(target: number, start
|
|
4128
|
+
copyWithin(target: number, start?: number, end?: number): this;
|
|
4129
4129
|
|
|
4130
4130
|
/**
|
|
4131
4131
|
* Determines whether all the members of an array satisfy the specified test.
|
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.1";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20230322`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -7313,7 +7313,6 @@ var Diagnostics = {
|
|
|
7313
7313
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
7314
7314
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
7315
7315
|
Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
|
|
7316
|
-
Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks: diag(6805, 3 /* Message */, "Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks_6805", "Default type arguments to parameter constraint or 'unknown' instead of 'any' for instance checks."),
|
|
7317
7316
|
one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
|
|
7318
7317
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
|
7319
7318
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
|
@@ -12552,9 +12551,8 @@ function isPartOfTypeNode(node) {
|
|
|
12552
12551
|
return node === parent.type;
|
|
12553
12552
|
case 211 /* CallExpression */:
|
|
12554
12553
|
case 212 /* NewExpression */:
|
|
12555
|
-
return contains(parent.typeArguments, node);
|
|
12556
12554
|
case 213 /* TaggedTemplateExpression */:
|
|
12557
|
-
return
|
|
12555
|
+
return contains(parent.typeArguments, node);
|
|
12558
12556
|
}
|
|
12559
12557
|
}
|
|
12560
12558
|
}
|
|
@@ -33851,16 +33849,6 @@ var commandOptionsWithoutBuild = [
|
|
|
33851
33849
|
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
33852
33850
|
defaultValueDescription: false
|
|
33853
33851
|
},
|
|
33854
|
-
{
|
|
33855
|
-
name: "strictInstanceOfTypeParameters",
|
|
33856
|
-
type: "boolean",
|
|
33857
|
-
affectsSemanticDiagnostics: true,
|
|
33858
|
-
affectsBuildInfo: true,
|
|
33859
|
-
strictFlag: true,
|
|
33860
|
-
category: Diagnostics.Type_Checking,
|
|
33861
|
-
description: Diagnostics.Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks,
|
|
33862
|
-
defaultValueDescription: false
|
|
33863
|
-
},
|
|
33864
33852
|
{
|
|
33865
33853
|
name: "alwaysStrict",
|
|
33866
33854
|
type: "boolean",
|
|
@@ -34079,6 +34067,7 @@ var commandOptionsWithoutBuild = [
|
|
|
34079
34067
|
name: "allowImportingTsExtensions",
|
|
34080
34068
|
type: "boolean",
|
|
34081
34069
|
affectsSemanticDiagnostics: true,
|
|
34070
|
+
affectsBuildInfo: true,
|
|
34082
34071
|
category: Diagnostics.Modules,
|
|
34083
34072
|
description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
|
|
34084
34073
|
defaultValueDescription: false
|
|
@@ -42549,7 +42538,6 @@ function createTypeChecker(host) {
|
|
|
42549
42538
|
var noImplicitAny = getStrictOptionValue(compilerOptions, "noImplicitAny");
|
|
42550
42539
|
var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
|
|
42551
42540
|
var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
|
42552
|
-
var strictInstanceOfTypeParameters = true;
|
|
42553
42541
|
var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;
|
|
42554
42542
|
var defaultIndexFlags = keyofStringsOnly ? 1 /* StringsOnly */ : 0 /* None */;
|
|
42555
42543
|
var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 8192 /* FreshLiteral */;
|
|
@@ -45494,7 +45482,7 @@ function createTypeChecker(host) {
|
|
|
45494
45482
|
return void 0;
|
|
45495
45483
|
}
|
|
45496
45484
|
} else {
|
|
45497
|
-
|
|
45485
|
+
Debug.assertNever(name, "Unknown entity name kind.");
|
|
45498
45486
|
}
|
|
45499
45487
|
Debug.assert((getCheckFlags(symbol) & 1 /* Instantiated */) === 0, "Should never get an instantiated symbol here.");
|
|
45500
45488
|
if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 275 /* ExportAssignment */)) {
|
|
@@ -50523,30 +50511,9 @@ function createTypeChecker(host) {
|
|
|
50523
50511
|
}
|
|
50524
50512
|
}).parent;
|
|
50525
50513
|
}
|
|
50526
|
-
function getInstanceTypeOfClassSymbol(classSymbol) {
|
|
50527
|
-
const classType = getDeclaredTypeOfSymbol(classSymbol);
|
|
50528
|
-
const objectFlags = getObjectFlags(classType);
|
|
50529
|
-
if (!(objectFlags & 3 /* ClassOrInterface */) || !classType.typeParameters) {
|
|
50530
|
-
return classType;
|
|
50531
|
-
}
|
|
50532
|
-
const variances = getVariances(classType);
|
|
50533
|
-
const typeArguments = map(classType.typeParameters, (typeParameter, i) => {
|
|
50534
|
-
if (!strictInstanceOfTypeParameters) {
|
|
50535
|
-
return anyType;
|
|
50536
|
-
}
|
|
50537
|
-
const variance = variances[i];
|
|
50538
|
-
switch (variance & 7 /* VarianceMask */) {
|
|
50539
|
-
case 2 /* Contravariant */:
|
|
50540
|
-
case 3 /* Bivariant */:
|
|
50541
|
-
return neverType;
|
|
50542
|
-
}
|
|
50543
|
-
return getBaseConstraintOfType(typeParameter) || unknownType;
|
|
50544
|
-
});
|
|
50545
|
-
return createTypeReference(classType, typeArguments);
|
|
50546
|
-
}
|
|
50547
50514
|
function getTypeOfPrototypeProperty(prototype) {
|
|
50548
|
-
const
|
|
50549
|
-
return
|
|
50515
|
+
const classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype));
|
|
50516
|
+
return classType.typeParameters ? createTypeReference(classType, map(classType.typeParameters, (_) => anyType)) : classType;
|
|
50550
50517
|
}
|
|
50551
50518
|
function getTypeOfPropertyOfType(type, name) {
|
|
50552
50519
|
const prop = getPropertyOfType(type, name);
|
|
@@ -56361,7 +56328,7 @@ function createTypeChecker(host) {
|
|
|
56361
56328
|
links.resolvedType = getTypeFromTypeNode(node.type);
|
|
56362
56329
|
break;
|
|
56363
56330
|
default:
|
|
56364
|
-
|
|
56331
|
+
Debug.assertNever(node.operator);
|
|
56365
56332
|
}
|
|
56366
56333
|
}
|
|
56367
56334
|
return links.resolvedType;
|
|
@@ -61359,7 +61326,7 @@ function createTypeChecker(host) {
|
|
|
61359
61326
|
const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType);
|
|
61360
61327
|
let result2 = -1 /* True */;
|
|
61361
61328
|
for (const targetInfo of indexInfos) {
|
|
61362
|
-
const related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
61329
|
+
const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
61363
61330
|
if (!related) {
|
|
61364
61331
|
return 0 /* False */;
|
|
61365
61332
|
}
|
|
@@ -65026,8 +64993,8 @@ function createTypeChecker(host) {
|
|
|
65026
64993
|
if (symbol === void 0) {
|
|
65027
64994
|
return type;
|
|
65028
64995
|
}
|
|
65029
|
-
const classSymbol =
|
|
65030
|
-
const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) :
|
|
64996
|
+
const classSymbol = symbol.parent;
|
|
64997
|
+
const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol);
|
|
65031
64998
|
return getNarrowedType(
|
|
65032
64999
|
type,
|
|
65033
65000
|
targetType,
|
|
@@ -70659,7 +70626,7 @@ function createTypeChecker(host) {
|
|
|
70659
70626
|
case 283 /* JsxSelfClosingElement */:
|
|
70660
70627
|
return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode);
|
|
70661
70628
|
}
|
|
70662
|
-
|
|
70629
|
+
Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable.");
|
|
70663
70630
|
}
|
|
70664
70631
|
function getResolvedSignature(node, candidatesOutArray, checkMode) {
|
|
70665
70632
|
const links = getNodeLinks(node);
|
|
@@ -81934,7 +81901,7 @@ function createTypeChecker(host) {
|
|
|
81934
81901
|
currentKind = 2 /* SetAccessor */;
|
|
81935
81902
|
break;
|
|
81936
81903
|
default:
|
|
81937
|
-
|
|
81904
|
+
Debug.assertNever(prop, "Unexpected syntax kind:" + prop.kind);
|
|
81938
81905
|
}
|
|
81939
81906
|
if (!inDestructuring) {
|
|
81940
81907
|
const effectiveName = getEffectivePropertyNameForPropertyNameNode(name);
|
package/lib/tsserver.js
CHANGED
|
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2286
2286
|
|
|
2287
2287
|
// src/compiler/corePublic.ts
|
|
2288
2288
|
var versionMajorMinor = "5.1";
|
|
2289
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2289
|
+
var version = `${versionMajorMinor}.0-insiders.20230322`;
|
|
2290
2290
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2291
2291
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2292
2292
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10800,7 +10800,6 @@ var Diagnostics = {
|
|
|
10800
10800
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
10801
10801
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
10802
10802
|
Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
|
|
10803
|
-
Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks: diag(6805, 3 /* Message */, "Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks_6805", "Default type arguments to parameter constraint or 'unknown' instead of 'any' for instance checks."),
|
|
10804
10803
|
one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
|
|
10805
10804
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
|
10806
10805
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
|
@@ -16338,9 +16337,8 @@ function isPartOfTypeNode(node) {
|
|
|
16338
16337
|
return node === parent2.type;
|
|
16339
16338
|
case 211 /* CallExpression */:
|
|
16340
16339
|
case 212 /* NewExpression */:
|
|
16341
|
-
return contains(parent2.typeArguments, node);
|
|
16342
16340
|
case 213 /* TaggedTemplateExpression */:
|
|
16343
|
-
return
|
|
16341
|
+
return contains(parent2.typeArguments, node);
|
|
16344
16342
|
}
|
|
16345
16343
|
}
|
|
16346
16344
|
}
|
|
@@ -38212,16 +38210,6 @@ var commandOptionsWithoutBuild = [
|
|
|
38212
38210
|
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
38213
38211
|
defaultValueDescription: false
|
|
38214
38212
|
},
|
|
38215
|
-
{
|
|
38216
|
-
name: "strictInstanceOfTypeParameters",
|
|
38217
|
-
type: "boolean",
|
|
38218
|
-
affectsSemanticDiagnostics: true,
|
|
38219
|
-
affectsBuildInfo: true,
|
|
38220
|
-
strictFlag: true,
|
|
38221
|
-
category: Diagnostics.Type_Checking,
|
|
38222
|
-
description: Diagnostics.Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks,
|
|
38223
|
-
defaultValueDescription: false
|
|
38224
|
-
},
|
|
38225
38213
|
{
|
|
38226
38214
|
name: "alwaysStrict",
|
|
38227
38215
|
type: "boolean",
|
|
@@ -38440,6 +38428,7 @@ var commandOptionsWithoutBuild = [
|
|
|
38440
38428
|
name: "allowImportingTsExtensions",
|
|
38441
38429
|
type: "boolean",
|
|
38442
38430
|
affectsSemanticDiagnostics: true,
|
|
38431
|
+
affectsBuildInfo: true,
|
|
38443
38432
|
category: Diagnostics.Modules,
|
|
38444
38433
|
description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
|
|
38445
38434
|
defaultValueDescription: false
|
|
@@ -47176,7 +47165,6 @@ function createTypeChecker(host) {
|
|
|
47176
47165
|
var noImplicitAny = getStrictOptionValue(compilerOptions, "noImplicitAny");
|
|
47177
47166
|
var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
|
|
47178
47167
|
var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
|
47179
|
-
var strictInstanceOfTypeParameters = true;
|
|
47180
47168
|
var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;
|
|
47181
47169
|
var defaultIndexFlags = keyofStringsOnly ? 1 /* StringsOnly */ : 0 /* None */;
|
|
47182
47170
|
var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 8192 /* FreshLiteral */;
|
|
@@ -50121,7 +50109,7 @@ function createTypeChecker(host) {
|
|
|
50121
50109
|
return void 0;
|
|
50122
50110
|
}
|
|
50123
50111
|
} else {
|
|
50124
|
-
|
|
50112
|
+
Debug.assertNever(name, "Unknown entity name kind.");
|
|
50125
50113
|
}
|
|
50126
50114
|
Debug.assert((getCheckFlags(symbol) & 1 /* Instantiated */) === 0, "Should never get an instantiated symbol here.");
|
|
50127
50115
|
if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 275 /* ExportAssignment */)) {
|
|
@@ -55150,30 +55138,9 @@ function createTypeChecker(host) {
|
|
|
55150
55138
|
}
|
|
55151
55139
|
}).parent;
|
|
55152
55140
|
}
|
|
55153
|
-
function getInstanceTypeOfClassSymbol(classSymbol) {
|
|
55154
|
-
const classType = getDeclaredTypeOfSymbol(classSymbol);
|
|
55155
|
-
const objectFlags = getObjectFlags(classType);
|
|
55156
|
-
if (!(objectFlags & 3 /* ClassOrInterface */) || !classType.typeParameters) {
|
|
55157
|
-
return classType;
|
|
55158
|
-
}
|
|
55159
|
-
const variances = getVariances(classType);
|
|
55160
|
-
const typeArguments = map(classType.typeParameters, (typeParameter, i) => {
|
|
55161
|
-
if (!strictInstanceOfTypeParameters) {
|
|
55162
|
-
return anyType;
|
|
55163
|
-
}
|
|
55164
|
-
const variance = variances[i];
|
|
55165
|
-
switch (variance & 7 /* VarianceMask */) {
|
|
55166
|
-
case 2 /* Contravariant */:
|
|
55167
|
-
case 3 /* Bivariant */:
|
|
55168
|
-
return neverType;
|
|
55169
|
-
}
|
|
55170
|
-
return getBaseConstraintOfType(typeParameter) || unknownType;
|
|
55171
|
-
});
|
|
55172
|
-
return createTypeReference(classType, typeArguments);
|
|
55173
|
-
}
|
|
55174
55141
|
function getTypeOfPrototypeProperty(prototype) {
|
|
55175
|
-
const
|
|
55176
|
-
return
|
|
55142
|
+
const classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype));
|
|
55143
|
+
return classType.typeParameters ? createTypeReference(classType, map(classType.typeParameters, (_) => anyType)) : classType;
|
|
55177
55144
|
}
|
|
55178
55145
|
function getTypeOfPropertyOfType(type, name) {
|
|
55179
55146
|
const prop = getPropertyOfType(type, name);
|
|
@@ -60988,7 +60955,7 @@ function createTypeChecker(host) {
|
|
|
60988
60955
|
links.resolvedType = getTypeFromTypeNode(node.type);
|
|
60989
60956
|
break;
|
|
60990
60957
|
default:
|
|
60991
|
-
|
|
60958
|
+
Debug.assertNever(node.operator);
|
|
60992
60959
|
}
|
|
60993
60960
|
}
|
|
60994
60961
|
return links.resolvedType;
|
|
@@ -65986,7 +65953,7 @@ function createTypeChecker(host) {
|
|
|
65986
65953
|
const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType);
|
|
65987
65954
|
let result2 = -1 /* True */;
|
|
65988
65955
|
for (const targetInfo of indexInfos) {
|
|
65989
|
-
const related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
65956
|
+
const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
65990
65957
|
if (!related) {
|
|
65991
65958
|
return 0 /* False */;
|
|
65992
65959
|
}
|
|
@@ -69653,8 +69620,8 @@ function createTypeChecker(host) {
|
|
|
69653
69620
|
if (symbol === void 0) {
|
|
69654
69621
|
return type;
|
|
69655
69622
|
}
|
|
69656
|
-
const classSymbol =
|
|
69657
|
-
const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) :
|
|
69623
|
+
const classSymbol = symbol.parent;
|
|
69624
|
+
const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol);
|
|
69658
69625
|
return getNarrowedType(
|
|
69659
69626
|
type,
|
|
69660
69627
|
targetType,
|
|
@@ -75286,7 +75253,7 @@ function createTypeChecker(host) {
|
|
|
75286
75253
|
case 283 /* JsxSelfClosingElement */:
|
|
75287
75254
|
return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode);
|
|
75288
75255
|
}
|
|
75289
|
-
|
|
75256
|
+
Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable.");
|
|
75290
75257
|
}
|
|
75291
75258
|
function getResolvedSignature(node, candidatesOutArray, checkMode) {
|
|
75292
75259
|
const links = getNodeLinks(node);
|
|
@@ -86561,7 +86528,7 @@ function createTypeChecker(host) {
|
|
|
86561
86528
|
currentKind = 2 /* SetAccessor */;
|
|
86562
86529
|
break;
|
|
86563
86530
|
default:
|
|
86564
|
-
|
|
86531
|
+
Debug.assertNever(prop, "Unexpected syntax kind:" + prop.kind);
|
|
86565
86532
|
}
|
|
86566
86533
|
if (!inDestructuring) {
|
|
86567
86534
|
const effectiveName = getEffectivePropertyNameForPropertyNameNode(name);
|
|
@@ -127310,7 +127277,7 @@ function renderPackageNameValidationFailureWorker(typing, result, name, isScopeN
|
|
|
127310
127277
|
case 0 /* Ok */:
|
|
127311
127278
|
return Debug.fail();
|
|
127312
127279
|
default:
|
|
127313
|
-
|
|
127280
|
+
Debug.assertNever(result);
|
|
127314
127281
|
}
|
|
127315
127282
|
}
|
|
127316
127283
|
|
|
@@ -148131,7 +148098,7 @@ function getInfo14(sourceFile, program, pos) {
|
|
|
148131
148098
|
/*checkArgumentIsStringLiteralLike*/
|
|
148132
148099
|
true
|
|
148133
148100
|
)) {
|
|
148134
|
-
|
|
148101
|
+
Debug.failBadSyntaxKind(parent2);
|
|
148135
148102
|
}
|
|
148136
148103
|
const decl = cast(parent2.parent, isVariableDeclaration);
|
|
148137
148104
|
const defaultImportName = tryCast(decl.name, isIdentifier);
|
|
@@ -149840,7 +149807,7 @@ function completionEntryDataToSymbolOriginInfo(data, completionName, moduleSymbo
|
|
|
149840
149807
|
}
|
|
149841
149808
|
function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences) {
|
|
149842
149809
|
const replacementSpan = importStatementCompletion.replacementSpan;
|
|
149843
|
-
const quotedModuleSpecifier = quote(sourceFile, preferences,
|
|
149810
|
+
const quotedModuleSpecifier = escapeSnippetText(quote(sourceFile, preferences, origin.moduleSpecifier));
|
|
149844
149811
|
const exportKind = origin.isDefaultExport ? 1 /* Default */ : origin.exportName === "export=" /* ExportEquals */ ? 2 /* ExportEquals */ : 0 /* Named */;
|
|
149845
149812
|
const tabStop = preferences.includeCompletionsWithSnippetText ? "$1" : "";
|
|
149846
149813
|
const importKind = ts_codefix_exports.getImportKind(
|
|
@@ -161361,7 +161328,7 @@ function getDescriptionForFunctionLikeDeclaration(scope) {
|
|
|
161361
161328
|
case 176 /* SetAccessor */:
|
|
161362
161329
|
return `'set ${scope.name.getText()}'`;
|
|
161363
161330
|
default:
|
|
161364
|
-
|
|
161331
|
+
Debug.assertNever(scope, `Unexpected scope kind ${scope.kind}`);
|
|
161365
161332
|
}
|
|
161366
161333
|
}
|
|
161367
161334
|
function getDescriptionForClassLikeDeclaration(scope) {
|
package/lib/tsserverlibrary.d.ts
CHANGED
|
@@ -7141,7 +7141,6 @@ declare namespace ts {
|
|
|
7141
7141
|
strictBindCallApply?: boolean;
|
|
7142
7142
|
strictNullChecks?: boolean;
|
|
7143
7143
|
strictPropertyInitialization?: boolean;
|
|
7144
|
-
strictInstanceOfTypeParameters?: boolean;
|
|
7145
7144
|
stripInternal?: boolean;
|
|
7146
7145
|
suppressExcessPropertyErrors?: boolean;
|
|
7147
7146
|
suppressImplicitAnyIndexErrors?: boolean;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230322`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -8623,7 +8623,6 @@ ${lanes.join("\n")}
|
|
|
8623
8623
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
8624
8624
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
8625
8625
|
Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
|
|
8626
|
-
Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks: diag(6805, 3 /* Message */, "Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks_6805", "Default type arguments to parameter constraint or 'unknown' instead of 'any' for instance checks."),
|
|
8627
8626
|
one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
|
|
8628
8627
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
|
8629
8628
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
|
@@ -14160,9 +14159,8 @@ ${lanes.join("\n")}
|
|
|
14160
14159
|
return node === parent2.type;
|
|
14161
14160
|
case 211 /* CallExpression */:
|
|
14162
14161
|
case 212 /* NewExpression */:
|
|
14163
|
-
return contains(parent2.typeArguments, node);
|
|
14164
14162
|
case 213 /* TaggedTemplateExpression */:
|
|
14165
|
-
return
|
|
14163
|
+
return contains(parent2.typeArguments, node);
|
|
14166
14164
|
}
|
|
14167
14165
|
}
|
|
14168
14166
|
}
|
|
@@ -37735,16 +37733,6 @@ ${lanes.join("\n")}
|
|
|
37735
37733
|
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
37736
37734
|
defaultValueDescription: false
|
|
37737
37735
|
},
|
|
37738
|
-
{
|
|
37739
|
-
name: "strictInstanceOfTypeParameters",
|
|
37740
|
-
type: "boolean",
|
|
37741
|
-
affectsSemanticDiagnostics: true,
|
|
37742
|
-
affectsBuildInfo: true,
|
|
37743
|
-
strictFlag: true,
|
|
37744
|
-
category: Diagnostics.Type_Checking,
|
|
37745
|
-
description: Diagnostics.Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks,
|
|
37746
|
-
defaultValueDescription: false
|
|
37747
|
-
},
|
|
37748
37736
|
{
|
|
37749
37737
|
name: "alwaysStrict",
|
|
37750
37738
|
type: "boolean",
|
|
@@ -37963,6 +37951,7 @@ ${lanes.join("\n")}
|
|
|
37963
37951
|
name: "allowImportingTsExtensions",
|
|
37964
37952
|
type: "boolean",
|
|
37965
37953
|
affectsSemanticDiagnostics: true,
|
|
37954
|
+
affectsBuildInfo: true,
|
|
37966
37955
|
category: Diagnostics.Modules,
|
|
37967
37956
|
description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
|
|
37968
37957
|
defaultValueDescription: false
|
|
@@ -44984,7 +44973,6 @@ ${lanes.join("\n")}
|
|
|
44984
44973
|
var noImplicitAny = getStrictOptionValue(compilerOptions, "noImplicitAny");
|
|
44985
44974
|
var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
|
|
44986
44975
|
var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
|
44987
|
-
var strictInstanceOfTypeParameters = true;
|
|
44988
44976
|
var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;
|
|
44989
44977
|
var defaultIndexFlags = keyofStringsOnly ? 1 /* StringsOnly */ : 0 /* None */;
|
|
44990
44978
|
var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 8192 /* FreshLiteral */;
|
|
@@ -47929,7 +47917,7 @@ ${lanes.join("\n")}
|
|
|
47929
47917
|
return void 0;
|
|
47930
47918
|
}
|
|
47931
47919
|
} else {
|
|
47932
|
-
|
|
47920
|
+
Debug.assertNever(name, "Unknown entity name kind.");
|
|
47933
47921
|
}
|
|
47934
47922
|
Debug.assert((getCheckFlags(symbol) & 1 /* Instantiated */) === 0, "Should never get an instantiated symbol here.");
|
|
47935
47923
|
if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 275 /* ExportAssignment */)) {
|
|
@@ -52958,30 +52946,9 @@ ${lanes.join("\n")}
|
|
|
52958
52946
|
}
|
|
52959
52947
|
}).parent;
|
|
52960
52948
|
}
|
|
52961
|
-
function getInstanceTypeOfClassSymbol(classSymbol) {
|
|
52962
|
-
const classType = getDeclaredTypeOfSymbol(classSymbol);
|
|
52963
|
-
const objectFlags = getObjectFlags(classType);
|
|
52964
|
-
if (!(objectFlags & 3 /* ClassOrInterface */) || !classType.typeParameters) {
|
|
52965
|
-
return classType;
|
|
52966
|
-
}
|
|
52967
|
-
const variances = getVariances(classType);
|
|
52968
|
-
const typeArguments = map(classType.typeParameters, (typeParameter, i) => {
|
|
52969
|
-
if (!strictInstanceOfTypeParameters) {
|
|
52970
|
-
return anyType;
|
|
52971
|
-
}
|
|
52972
|
-
const variance = variances[i];
|
|
52973
|
-
switch (variance & 7 /* VarianceMask */) {
|
|
52974
|
-
case 2 /* Contravariant */:
|
|
52975
|
-
case 3 /* Bivariant */:
|
|
52976
|
-
return neverType;
|
|
52977
|
-
}
|
|
52978
|
-
return getBaseConstraintOfType(typeParameter) || unknownType;
|
|
52979
|
-
});
|
|
52980
|
-
return createTypeReference(classType, typeArguments);
|
|
52981
|
-
}
|
|
52982
52949
|
function getTypeOfPrototypeProperty(prototype) {
|
|
52983
|
-
const
|
|
52984
|
-
return
|
|
52950
|
+
const classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype));
|
|
52951
|
+
return classType.typeParameters ? createTypeReference(classType, map(classType.typeParameters, (_) => anyType)) : classType;
|
|
52985
52952
|
}
|
|
52986
52953
|
function getTypeOfPropertyOfType(type, name) {
|
|
52987
52954
|
const prop = getPropertyOfType(type, name);
|
|
@@ -58796,7 +58763,7 @@ ${lanes.join("\n")}
|
|
|
58796
58763
|
links.resolvedType = getTypeFromTypeNode(node.type);
|
|
58797
58764
|
break;
|
|
58798
58765
|
default:
|
|
58799
|
-
|
|
58766
|
+
Debug.assertNever(node.operator);
|
|
58800
58767
|
}
|
|
58801
58768
|
}
|
|
58802
58769
|
return links.resolvedType;
|
|
@@ -63794,7 +63761,7 @@ ${lanes.join("\n")}
|
|
|
63794
63761
|
const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType);
|
|
63795
63762
|
let result2 = -1 /* True */;
|
|
63796
63763
|
for (const targetInfo of indexInfos) {
|
|
63797
|
-
const related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
63764
|
+
const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
63798
63765
|
if (!related) {
|
|
63799
63766
|
return 0 /* False */;
|
|
63800
63767
|
}
|
|
@@ -67461,8 +67428,8 @@ ${lanes.join("\n")}
|
|
|
67461
67428
|
if (symbol === void 0) {
|
|
67462
67429
|
return type;
|
|
67463
67430
|
}
|
|
67464
|
-
const classSymbol =
|
|
67465
|
-
const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) :
|
|
67431
|
+
const classSymbol = symbol.parent;
|
|
67432
|
+
const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol);
|
|
67466
67433
|
return getNarrowedType(
|
|
67467
67434
|
type,
|
|
67468
67435
|
targetType,
|
|
@@ -73094,7 +73061,7 @@ ${lanes.join("\n")}
|
|
|
73094
73061
|
case 283 /* JsxSelfClosingElement */:
|
|
73095
73062
|
return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode);
|
|
73096
73063
|
}
|
|
73097
|
-
|
|
73064
|
+
Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable.");
|
|
73098
73065
|
}
|
|
73099
73066
|
function getResolvedSignature(node, candidatesOutArray, checkMode) {
|
|
73100
73067
|
const links = getNodeLinks(node);
|
|
@@ -84369,7 +84336,7 @@ ${lanes.join("\n")}
|
|
|
84369
84336
|
currentKind = 2 /* SetAccessor */;
|
|
84370
84337
|
break;
|
|
84371
84338
|
default:
|
|
84372
|
-
|
|
84339
|
+
Debug.assertNever(prop, "Unexpected syntax kind:" + prop.kind);
|
|
84373
84340
|
}
|
|
84374
84341
|
if (!inDestructuring) {
|
|
84375
84342
|
const effectiveName = getEffectivePropertyNameForPropertyNameNode(name);
|
|
@@ -125515,7 +125482,7 @@ ${lanes.join("\n")}
|
|
|
125515
125482
|
case 0 /* Ok */:
|
|
125516
125483
|
return Debug.fail();
|
|
125517
125484
|
default:
|
|
125518
|
-
|
|
125485
|
+
Debug.assertNever(result);
|
|
125519
125486
|
}
|
|
125520
125487
|
}
|
|
125521
125488
|
var unprefixedNodeCoreModuleList, prefixedNodeCoreModuleList, nodeCoreModuleList, nodeCoreModules, NameValidationResult, maxPackageNameLength;
|
|
@@ -147015,7 +146982,7 @@ ${lanes.join("\n")}
|
|
|
147015
146982
|
/*checkArgumentIsStringLiteralLike*/
|
|
147016
146983
|
true
|
|
147017
146984
|
)) {
|
|
147018
|
-
|
|
146985
|
+
Debug.failBadSyntaxKind(parent2);
|
|
147019
146986
|
}
|
|
147020
146987
|
const decl = cast(parent2.parent, isVariableDeclaration);
|
|
147021
146988
|
const defaultImportName = tryCast(decl.name, isIdentifier);
|
|
@@ -148894,7 +148861,7 @@ ${lanes.join("\n")}
|
|
|
148894
148861
|
}
|
|
148895
148862
|
function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences) {
|
|
148896
148863
|
const replacementSpan = importStatementCompletion.replacementSpan;
|
|
148897
|
-
const quotedModuleSpecifier = quote(sourceFile, preferences,
|
|
148864
|
+
const quotedModuleSpecifier = escapeSnippetText(quote(sourceFile, preferences, origin.moduleSpecifier));
|
|
148898
148865
|
const exportKind = origin.isDefaultExport ? 1 /* Default */ : origin.exportName === "export=" /* ExportEquals */ ? 2 /* ExportEquals */ : 0 /* Named */;
|
|
148899
148866
|
const tabStop = preferences.includeCompletionsWithSnippetText ? "$1" : "";
|
|
148900
148867
|
const importKind = ts_codefix_exports.getImportKind(
|
|
@@ -160631,7 +160598,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160631
160598
|
case 176 /* SetAccessor */:
|
|
160632
160599
|
return `'set ${scope.name.getText()}'`;
|
|
160633
160600
|
default:
|
|
160634
|
-
|
|
160601
|
+
Debug.assertNever(scope, `Unexpected scope kind ${scope.kind}`);
|
|
160635
160602
|
}
|
|
160636
160603
|
}
|
|
160637
160604
|
function getDescriptionForClassLikeDeclaration(scope) {
|
package/lib/typescript.d.ts
CHANGED
|
@@ -3198,7 +3198,6 @@ declare namespace ts {
|
|
|
3198
3198
|
strictBindCallApply?: boolean;
|
|
3199
3199
|
strictNullChecks?: boolean;
|
|
3200
3200
|
strictPropertyInitialization?: boolean;
|
|
3201
|
-
strictInstanceOfTypeParameters?: boolean;
|
|
3202
3201
|
stripInternal?: boolean;
|
|
3203
3202
|
suppressExcessPropertyErrors?: boolean;
|
|
3204
3203
|
suppressImplicitAnyIndexErrors?: boolean;
|
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.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-insiders.
|
|
38
|
+
version = `${versionMajorMinor}.0-insiders.20230322`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -8623,7 +8623,6 @@ ${lanes.join("\n")}
|
|
|
8623
8623
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
8624
8624
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
8625
8625
|
Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
|
|
8626
|
-
Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks: diag(6805, 3 /* Message */, "Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks_6805", "Default type arguments to parameter constraint or 'unknown' instead of 'any' for instance checks."),
|
|
8627
8626
|
one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
|
|
8628
8627
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
|
8629
8628
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
|
@@ -14160,9 +14159,8 @@ ${lanes.join("\n")}
|
|
|
14160
14159
|
return node === parent2.type;
|
|
14161
14160
|
case 211 /* CallExpression */:
|
|
14162
14161
|
case 212 /* NewExpression */:
|
|
14163
|
-
return contains(parent2.typeArguments, node);
|
|
14164
14162
|
case 213 /* TaggedTemplateExpression */:
|
|
14165
|
-
return
|
|
14163
|
+
return contains(parent2.typeArguments, node);
|
|
14166
14164
|
}
|
|
14167
14165
|
}
|
|
14168
14166
|
}
|
|
@@ -37735,16 +37733,6 @@ ${lanes.join("\n")}
|
|
|
37735
37733
|
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
37736
37734
|
defaultValueDescription: false
|
|
37737
37735
|
},
|
|
37738
|
-
{
|
|
37739
|
-
name: "strictInstanceOfTypeParameters",
|
|
37740
|
-
type: "boolean",
|
|
37741
|
-
affectsSemanticDiagnostics: true,
|
|
37742
|
-
affectsBuildInfo: true,
|
|
37743
|
-
strictFlag: true,
|
|
37744
|
-
category: Diagnostics.Type_Checking,
|
|
37745
|
-
description: Diagnostics.Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks,
|
|
37746
|
-
defaultValueDescription: false
|
|
37747
|
-
},
|
|
37748
37736
|
{
|
|
37749
37737
|
name: "alwaysStrict",
|
|
37750
37738
|
type: "boolean",
|
|
@@ -37963,6 +37951,7 @@ ${lanes.join("\n")}
|
|
|
37963
37951
|
name: "allowImportingTsExtensions",
|
|
37964
37952
|
type: "boolean",
|
|
37965
37953
|
affectsSemanticDiagnostics: true,
|
|
37954
|
+
affectsBuildInfo: true,
|
|
37966
37955
|
category: Diagnostics.Modules,
|
|
37967
37956
|
description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
|
|
37968
37957
|
defaultValueDescription: false
|
|
@@ -44984,7 +44973,6 @@ ${lanes.join("\n")}
|
|
|
44984
44973
|
var noImplicitAny = getStrictOptionValue(compilerOptions, "noImplicitAny");
|
|
44985
44974
|
var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
|
|
44986
44975
|
var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
|
44987
|
-
var strictInstanceOfTypeParameters = true;
|
|
44988
44976
|
var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;
|
|
44989
44977
|
var defaultIndexFlags = keyofStringsOnly ? 1 /* StringsOnly */ : 0 /* None */;
|
|
44990
44978
|
var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 8192 /* FreshLiteral */;
|
|
@@ -47929,7 +47917,7 @@ ${lanes.join("\n")}
|
|
|
47929
47917
|
return void 0;
|
|
47930
47918
|
}
|
|
47931
47919
|
} else {
|
|
47932
|
-
|
|
47920
|
+
Debug.assertNever(name, "Unknown entity name kind.");
|
|
47933
47921
|
}
|
|
47934
47922
|
Debug.assert((getCheckFlags(symbol) & 1 /* Instantiated */) === 0, "Should never get an instantiated symbol here.");
|
|
47935
47923
|
if (!nodeIsSynthesized(name) && isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 275 /* ExportAssignment */)) {
|
|
@@ -52958,30 +52946,9 @@ ${lanes.join("\n")}
|
|
|
52958
52946
|
}
|
|
52959
52947
|
}).parent;
|
|
52960
52948
|
}
|
|
52961
|
-
function getInstanceTypeOfClassSymbol(classSymbol) {
|
|
52962
|
-
const classType = getDeclaredTypeOfSymbol(classSymbol);
|
|
52963
|
-
const objectFlags = getObjectFlags(classType);
|
|
52964
|
-
if (!(objectFlags & 3 /* ClassOrInterface */) || !classType.typeParameters) {
|
|
52965
|
-
return classType;
|
|
52966
|
-
}
|
|
52967
|
-
const variances = getVariances(classType);
|
|
52968
|
-
const typeArguments = map(classType.typeParameters, (typeParameter, i) => {
|
|
52969
|
-
if (!strictInstanceOfTypeParameters) {
|
|
52970
|
-
return anyType;
|
|
52971
|
-
}
|
|
52972
|
-
const variance = variances[i];
|
|
52973
|
-
switch (variance & 7 /* VarianceMask */) {
|
|
52974
|
-
case 2 /* Contravariant */:
|
|
52975
|
-
case 3 /* Bivariant */:
|
|
52976
|
-
return neverType;
|
|
52977
|
-
}
|
|
52978
|
-
return getBaseConstraintOfType(typeParameter) || unknownType;
|
|
52979
|
-
});
|
|
52980
|
-
return createTypeReference(classType, typeArguments);
|
|
52981
|
-
}
|
|
52982
52949
|
function getTypeOfPrototypeProperty(prototype) {
|
|
52983
|
-
const
|
|
52984
|
-
return
|
|
52950
|
+
const classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype));
|
|
52951
|
+
return classType.typeParameters ? createTypeReference(classType, map(classType.typeParameters, (_) => anyType)) : classType;
|
|
52985
52952
|
}
|
|
52986
52953
|
function getTypeOfPropertyOfType(type, name) {
|
|
52987
52954
|
const prop = getPropertyOfType(type, name);
|
|
@@ -58796,7 +58763,7 @@ ${lanes.join("\n")}
|
|
|
58796
58763
|
links.resolvedType = getTypeFromTypeNode(node.type);
|
|
58797
58764
|
break;
|
|
58798
58765
|
default:
|
|
58799
|
-
|
|
58766
|
+
Debug.assertNever(node.operator);
|
|
58800
58767
|
}
|
|
58801
58768
|
}
|
|
58802
58769
|
return links.resolvedType;
|
|
@@ -63794,7 +63761,7 @@ ${lanes.join("\n")}
|
|
|
63794
63761
|
const targetHasStringIndex = some(indexInfos, (info) => info.keyType === stringType);
|
|
63795
63762
|
let result2 = -1 /* True */;
|
|
63796
63763
|
for (const targetInfo of indexInfos) {
|
|
63797
|
-
const related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
63764
|
+
const related = relation !== strictSubtypeRelation && !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ : isGenericMappedType(source2) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source2), targetInfo.type, 3 /* Both */, reportErrors2) : typeRelatedToIndexInfo(source2, targetInfo, reportErrors2, intersectionState);
|
|
63798
63765
|
if (!related) {
|
|
63799
63766
|
return 0 /* False */;
|
|
63800
63767
|
}
|
|
@@ -67461,8 +67428,8 @@ ${lanes.join("\n")}
|
|
|
67461
67428
|
if (symbol === void 0) {
|
|
67462
67429
|
return type;
|
|
67463
67430
|
}
|
|
67464
|
-
const classSymbol =
|
|
67465
|
-
const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) :
|
|
67431
|
+
const classSymbol = symbol.parent;
|
|
67432
|
+
const targetType = hasStaticModifier(Debug.checkDefined(symbol.valueDeclaration, "should always have a declaration")) ? getTypeOfSymbol(classSymbol) : getDeclaredTypeOfSymbol(classSymbol);
|
|
67466
67433
|
return getNarrowedType(
|
|
67467
67434
|
type,
|
|
67468
67435
|
targetType,
|
|
@@ -73094,7 +73061,7 @@ ${lanes.join("\n")}
|
|
|
73094
73061
|
case 283 /* JsxSelfClosingElement */:
|
|
73095
73062
|
return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode);
|
|
73096
73063
|
}
|
|
73097
|
-
|
|
73064
|
+
Debug.assertNever(node, "Branch in 'resolveSignature' should be unreachable.");
|
|
73098
73065
|
}
|
|
73099
73066
|
function getResolvedSignature(node, candidatesOutArray, checkMode) {
|
|
73100
73067
|
const links = getNodeLinks(node);
|
|
@@ -84369,7 +84336,7 @@ ${lanes.join("\n")}
|
|
|
84369
84336
|
currentKind = 2 /* SetAccessor */;
|
|
84370
84337
|
break;
|
|
84371
84338
|
default:
|
|
84372
|
-
|
|
84339
|
+
Debug.assertNever(prop, "Unexpected syntax kind:" + prop.kind);
|
|
84373
84340
|
}
|
|
84374
84341
|
if (!inDestructuring) {
|
|
84375
84342
|
const effectiveName = getEffectivePropertyNameForPropertyNameNode(name);
|
|
@@ -125515,7 +125482,7 @@ ${lanes.join("\n")}
|
|
|
125515
125482
|
case 0 /* Ok */:
|
|
125516
125483
|
return Debug.fail();
|
|
125517
125484
|
default:
|
|
125518
|
-
|
|
125485
|
+
Debug.assertNever(result);
|
|
125519
125486
|
}
|
|
125520
125487
|
}
|
|
125521
125488
|
var unprefixedNodeCoreModuleList, prefixedNodeCoreModuleList, nodeCoreModuleList, nodeCoreModules, NameValidationResult, maxPackageNameLength;
|
|
@@ -147029,7 +146996,7 @@ ${lanes.join("\n")}
|
|
|
147029
146996
|
/*checkArgumentIsStringLiteralLike*/
|
|
147030
146997
|
true
|
|
147031
146998
|
)) {
|
|
147032
|
-
|
|
146999
|
+
Debug.failBadSyntaxKind(parent2);
|
|
147033
147000
|
}
|
|
147034
147001
|
const decl = cast(parent2.parent, isVariableDeclaration);
|
|
147035
147002
|
const defaultImportName = tryCast(decl.name, isIdentifier);
|
|
@@ -148908,7 +148875,7 @@ ${lanes.join("\n")}
|
|
|
148908
148875
|
}
|
|
148909
148876
|
function getInsertTextAndReplacementSpanForImportCompletion(name, importStatementCompletion, origin, useSemicolons, sourceFile, options, preferences) {
|
|
148910
148877
|
const replacementSpan = importStatementCompletion.replacementSpan;
|
|
148911
|
-
const quotedModuleSpecifier = quote(sourceFile, preferences,
|
|
148878
|
+
const quotedModuleSpecifier = escapeSnippetText(quote(sourceFile, preferences, origin.moduleSpecifier));
|
|
148912
148879
|
const exportKind = origin.isDefaultExport ? 1 /* Default */ : origin.exportName === "export=" /* ExportEquals */ ? 2 /* ExportEquals */ : 0 /* Named */;
|
|
148913
148880
|
const tabStop = preferences.includeCompletionsWithSnippetText ? "$1" : "";
|
|
148914
148881
|
const importKind = ts_codefix_exports.getImportKind(
|
|
@@ -160645,7 +160612,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160645
160612
|
case 176 /* SetAccessor */:
|
|
160646
160613
|
return `'set ${scope.name.getText()}'`;
|
|
160647
160614
|
default:
|
|
160648
|
-
|
|
160615
|
+
Debug.assertNever(scope, `Unexpected scope kind ${scope.kind}`);
|
|
160649
160616
|
}
|
|
160650
160617
|
}
|
|
160651
160618
|
function getDescriptionForClassLikeDeclaration(scope) {
|
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.1";
|
|
57
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
57
|
+
var version = `${versionMajorMinor}.0-insiders.20230322`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -6693,7 +6693,6 @@ var Diagnostics = {
|
|
|
6693
6693
|
Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, 3 /* Message */, "Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718", "Specify emit/checking behavior for imports that are only used for types."),
|
|
6694
6694
|
Default_catch_clause_variables_as_unknown_instead_of_any: diag(6803, 3 /* Message */, "Default_catch_clause_variables_as_unknown_instead_of_any_6803", "Default catch clause variables as 'unknown' instead of 'any'."),
|
|
6695
6695
|
Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting: diag(6804, 3 /* Message */, "Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804", "Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),
|
|
6696
|
-
Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks: diag(6805, 3 /* Message */, "Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks_6805", "Default type arguments to parameter constraint or 'unknown' instead of 'any' for instance checks."),
|
|
6697
6696
|
one_of_Colon: diag(6900, 3 /* Message */, "one_of_Colon_6900", "one of:"),
|
|
6698
6697
|
one_or_more_Colon: diag(6901, 3 /* Message */, "one_or_more_Colon_6901", "one or more:"),
|
|
6699
6698
|
type_Colon: diag(6902, 3 /* Message */, "type_Colon_6902", "type:"),
|
|
@@ -25907,16 +25906,6 @@ var commandOptionsWithoutBuild = [
|
|
|
25907
25906
|
description: Diagnostics.Default_catch_clause_variables_as_unknown_instead_of_any,
|
|
25908
25907
|
defaultValueDescription: false
|
|
25909
25908
|
},
|
|
25910
|
-
{
|
|
25911
|
-
name: "strictInstanceOfTypeParameters",
|
|
25912
|
-
type: "boolean",
|
|
25913
|
-
affectsSemanticDiagnostics: true,
|
|
25914
|
-
affectsBuildInfo: true,
|
|
25915
|
-
strictFlag: true,
|
|
25916
|
-
category: Diagnostics.Type_Checking,
|
|
25917
|
-
description: Diagnostics.Default_type_arguments_to_parameter_constraint_or_unknown_instead_of_any_for_instance_checks,
|
|
25918
|
-
defaultValueDescription: false
|
|
25919
|
-
},
|
|
25920
25909
|
{
|
|
25921
25910
|
name: "alwaysStrict",
|
|
25922
25911
|
type: "boolean",
|
|
@@ -26135,6 +26124,7 @@ var commandOptionsWithoutBuild = [
|
|
|
26135
26124
|
name: "allowImportingTsExtensions",
|
|
26136
26125
|
type: "boolean",
|
|
26137
26126
|
affectsSemanticDiagnostics: true,
|
|
26127
|
+
affectsBuildInfo: true,
|
|
26138
26128
|
category: Diagnostics.Modules,
|
|
26139
26129
|
description: Diagnostics.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,
|
|
26140
26130
|
defaultValueDescription: false
|
|
@@ -31364,7 +31354,7 @@ function renderPackageNameValidationFailureWorker(typing, result, name, isScopeN
|
|
|
31364
31354
|
case 0 /* Ok */:
|
|
31365
31355
|
return Debug.fail();
|
|
31366
31356
|
default:
|
|
31367
|
-
|
|
31357
|
+
Debug.assertNever(result);
|
|
31368
31358
|
}
|
|
31369
31359
|
}
|
|
31370
31360
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.1.0-pr-
|
|
5
|
+
"version": "5.1.0-pr-53388-13",
|
|
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": "14.21.1",
|
|
115
115
|
"npm": "8.19.3"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "c72d93382db27e5417bcf171839fd158a76c8431"
|
|
118
118
|
}
|