typescript 6.0.0-dev.20260227 → 6.0.0-dev.20260301
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 +14 -9
- package/lib/lib.dom.d.ts +7 -6
- package/lib/lib.webworker.d.ts +1 -1
- package/lib/typescript.js +14 -9
- 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 = "6.0";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20260301`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6813,6 +6813,7 @@ var Diagnostics = {
|
|
|
6813
6813
|
Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
|
|
6814
6814
|
This_expression_is_never_nullish: diag(2881, 1 /* Error */, "This_expression_is_never_nullish_2881", "This expression is never nullish."),
|
|
6815
6815
|
Cannot_find_module_or_type_declarations_for_side_effect_import_of_0: diag(2882, 1 /* Error */, "Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882", "Cannot find module or type declarations for side-effect import of '{0}'."),
|
|
6816
|
+
The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_type_annotation_is_necessary: diag(2883, 1 /* Error */, "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_2883", "The inferred type of '{0}' cannot be named without a reference to '{2}' from '{1}'. This is likely not portable. A type annotation is necessary."),
|
|
6816
6817
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
6817
6818
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
6818
6819
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -50915,7 +50916,7 @@ function createTypeChecker(host) {
|
|
|
50915
50916
|
if (name.includes("/node_modules/")) {
|
|
50916
50917
|
context.encounteredError = true;
|
|
50917
50918
|
if (context.tracker.reportLikelyUnsafeImportRequiredError) {
|
|
50918
|
-
context.tracker.reportLikelyUnsafeImportRequiredError(name);
|
|
50919
|
+
context.tracker.reportLikelyUnsafeImportRequiredError(name, nodeSymbol ? unescapeLeadingUnderscores(nodeSymbol.escapedName) : void 0);
|
|
50919
50920
|
}
|
|
50920
50921
|
}
|
|
50921
50922
|
if (name !== originalName) {
|
|
@@ -52628,8 +52629,8 @@ function createTypeChecker(host) {
|
|
|
52628
52629
|
reportInaccessibleUniqueSymbolError() {
|
|
52629
52630
|
markError(() => oldTracker.reportInaccessibleUniqueSymbolError());
|
|
52630
52631
|
},
|
|
52631
|
-
reportLikelyUnsafeImportRequiredError(specifier) {
|
|
52632
|
-
markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier));
|
|
52632
|
+
reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
52633
|
+
markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier, symbolName2));
|
|
52633
52634
|
},
|
|
52634
52635
|
reportNonSerializableProperty(name) {
|
|
52635
52636
|
markError(() => oldTracker.reportNonSerializableProperty(name));
|
|
@@ -53155,7 +53156,7 @@ function createTypeChecker(host) {
|
|
|
53155
53156
|
if (!attributes) {
|
|
53156
53157
|
context.encounteredError = true;
|
|
53157
53158
|
if (context.tracker.reportLikelyUnsafeImportRequiredError) {
|
|
53158
|
-
context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier);
|
|
53159
|
+
context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier, unescapeLeadingUnderscores(symbol.escapedName));
|
|
53159
53160
|
}
|
|
53160
53161
|
}
|
|
53161
53162
|
}
|
|
@@ -91002,11 +91003,11 @@ var SymbolTrackerImpl = class _SymbolTrackerImpl {
|
|
|
91002
91003
|
this.inner.reportCyclicStructureError();
|
|
91003
91004
|
}
|
|
91004
91005
|
}
|
|
91005
|
-
reportLikelyUnsafeImportRequiredError(specifier) {
|
|
91006
|
+
reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
91006
91007
|
var _a;
|
|
91007
91008
|
if ((_a = this.inner) == null ? void 0 : _a.reportLikelyUnsafeImportRequiredError) {
|
|
91008
91009
|
this.onDiagnosticReported();
|
|
91009
|
-
this.inner.reportLikelyUnsafeImportRequiredError(specifier);
|
|
91010
|
+
this.inner.reportLikelyUnsafeImportRequiredError(specifier, symbolName2);
|
|
91010
91011
|
}
|
|
91011
91012
|
}
|
|
91012
91013
|
reportTruncationError() {
|
|
@@ -114379,9 +114380,13 @@ function transformDeclarations(context) {
|
|
|
114379
114380
|
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), "this"));
|
|
114380
114381
|
}
|
|
114381
114382
|
}
|
|
114382
|
-
function reportLikelyUnsafeImportRequiredError(specifier) {
|
|
114383
|
+
function reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
114383
114384
|
if (errorNameNode || errorFallbackNode) {
|
|
114384
|
-
|
|
114385
|
+
if (symbolName2) {
|
|
114386
|
+
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier, symbolName2));
|
|
114387
|
+
} else {
|
|
114388
|
+
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier));
|
|
114389
|
+
}
|
|
114385
114390
|
}
|
|
114386
114391
|
}
|
|
114387
114392
|
function reportTruncationError() {
|
package/lib/lib.dom.d.ts
CHANGED
|
@@ -1198,7 +1198,7 @@ interface GamepadEffectParameters {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
1200
|
interface GamepadEventInit extends EventInit {
|
|
1201
|
-
gamepad
|
|
1201
|
+
gamepad?: Gamepad | null;
|
|
1202
1202
|
}
|
|
1203
1203
|
|
|
1204
1204
|
interface GetAnimationsOptions {
|
|
@@ -5374,13 +5374,13 @@ declare var CSSFontFaceRule: {
|
|
|
5374
5374
|
};
|
|
5375
5375
|
|
|
5376
5376
|
/**
|
|
5377
|
-
* The **`CSSFontFeatureValuesRule`** interface represents an @font-feature-values at-rule
|
|
5377
|
+
* The **`CSSFontFeatureValuesRule`** interface represents an @font-feature-values at-rule. The values of its instance properties can be accessed with the CSSFontFeatureValuesMap interface.
|
|
5378
5378
|
*
|
|
5379
5379
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule)
|
|
5380
5380
|
*/
|
|
5381
5381
|
interface CSSFontFeatureValuesRule extends CSSRule {
|
|
5382
5382
|
/**
|
|
5383
|
-
* The **`fontFamily`** property of the
|
|
5383
|
+
* The **`fontFamily`** property of the CSSFontFeatureValuesRule interface represents the name of the font family it applies to.
|
|
5384
5384
|
*
|
|
5385
5385
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)
|
|
5386
5386
|
*/
|
|
@@ -6831,6 +6831,7 @@ interface CSSStyleProperties extends CSSStyleDeclarationBase {
|
|
|
6831
6831
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/Reference/Properties/background-size)
|
|
6832
6832
|
*/
|
|
6833
6833
|
backgroundSize: string;
|
|
6834
|
+
/** The baseline-shift CSS property repositions the dominant-baseline of a text element relative to the dominant-baseline of its parent text content element. The shifted element might be a sub- or superscript. If the property is present, the value overrides the element's baseline-shift attribute. */
|
|
6834
6835
|
baselineShift: string;
|
|
6835
6836
|
/**
|
|
6836
6837
|
* The baseline-source CSS property defines which baseline to use when inline-level boxes have multiple possible baselines, such as multi-line inline blocks or inline flex containers. The values allow for choosing between aligning to the box's first baseline, last baseline, or letting the browser decide automatically based on the box type.
|
|
@@ -16458,7 +16459,7 @@ interface GamepadEvent extends Event {
|
|
|
16458
16459
|
|
|
16459
16460
|
declare var GamepadEvent: {
|
|
16460
16461
|
prototype: GamepadEvent;
|
|
16461
|
-
new(type: string, eventInitDict
|
|
16462
|
+
new(type: string, eventInitDict?: GamepadEventInit): GamepadEvent;
|
|
16462
16463
|
};
|
|
16463
16464
|
|
|
16464
16465
|
/**
|
|
@@ -30365,7 +30366,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
30365
30366
|
*
|
|
30366
30367
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
30367
30368
|
*/
|
|
30368
|
-
enqueue(chunk
|
|
30369
|
+
enqueue(chunk: R): void;
|
|
30369
30370
|
/**
|
|
30370
30371
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
30371
30372
|
*
|
|
@@ -35337,7 +35338,7 @@ declare var ShadowRoot: {
|
|
|
35337
35338
|
};
|
|
35338
35339
|
|
|
35339
35340
|
/**
|
|
35340
|
-
* The **`SharedWorker`** interface represents a specific kind of worker that can be accessed from several browsing contexts, such as
|
|
35341
|
+
* The **`SharedWorker`** interface represents a specific kind of worker that can be accessed from several browsing contexts, such as multiple windows or iframes. Shared workers implement a different interface than dedicated workers, have a different global scope (SharedWorkerGlobalScope), and their constructor is not exposed in DedicatedWorkerGlobalScope, so they cannot be instantiated from dedicated workers.
|
|
35341
35342
|
*
|
|
35342
35343
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker)
|
|
35343
35344
|
*/
|
package/lib/lib.webworker.d.ts
CHANGED
|
@@ -9292,7 +9292,7 @@ interface ReadableStreamDefaultController<R = any> {
|
|
|
9292
9292
|
*
|
|
9293
9293
|
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue)
|
|
9294
9294
|
*/
|
|
9295
|
-
enqueue(chunk
|
|
9295
|
+
enqueue(chunk: R): void;
|
|
9296
9296
|
/**
|
|
9297
9297
|
* The **`error()`** method of the ReadableStreamDefaultController interface causes any future interactions with the associated stream to error.
|
|
9298
9298
|
*
|
package/lib/typescript.js
CHANGED
|
@@ -2289,7 +2289,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2289
2289
|
|
|
2290
2290
|
// src/compiler/corePublic.ts
|
|
2291
2291
|
var versionMajorMinor = "6.0";
|
|
2292
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2292
|
+
var version = `${versionMajorMinor}.0-dev.20260301`;
|
|
2293
2293
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2294
2294
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2295
2295
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10219,6 +10219,7 @@ var Diagnostics = {
|
|
|
10219
10219
|
Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert: diag(2880, 1 /* Error */, "Import_assertions_have_been_replaced_by_import_attributes_Use_with_instead_of_assert_2880", "Import assertions have been replaced by import attributes. Use 'with' instead of 'assert'."),
|
|
10220
10220
|
This_expression_is_never_nullish: diag(2881, 1 /* Error */, "This_expression_is_never_nullish_2881", "This expression is never nullish."),
|
|
10221
10221
|
Cannot_find_module_or_type_declarations_for_side_effect_import_of_0: diag(2882, 1 /* Error */, "Cannot_find_module_or_type_declarations_for_side_effect_import_of_0_2882", "Cannot find module or type declarations for side-effect import of '{0}'."),
|
|
10222
|
+
The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_type_annotation_is_necessary: diag(2883, 1 /* Error */, "The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_2883", "The inferred type of '{0}' cannot be named without a reference to '{2}' from '{1}'. This is likely not portable. A type annotation is necessary."),
|
|
10222
10223
|
Import_declaration_0_is_using_private_name_1: diag(4e3, 1 /* Error */, "Import_declaration_0_is_using_private_name_1_4000", "Import declaration '{0}' is using private name '{1}'."),
|
|
10223
10224
|
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, 1 /* Error */, "Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002", "Type parameter '{0}' of exported class has or is using private name '{1}'."),
|
|
10224
10225
|
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, 1 /* Error */, "Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004", "Type parameter '{0}' of exported interface has or is using private name '{1}'."),
|
|
@@ -55550,7 +55551,7 @@ function createTypeChecker(host) {
|
|
|
55550
55551
|
if (name.includes("/node_modules/")) {
|
|
55551
55552
|
context.encounteredError = true;
|
|
55552
55553
|
if (context.tracker.reportLikelyUnsafeImportRequiredError) {
|
|
55553
|
-
context.tracker.reportLikelyUnsafeImportRequiredError(name);
|
|
55554
|
+
context.tracker.reportLikelyUnsafeImportRequiredError(name, nodeSymbol ? unescapeLeadingUnderscores(nodeSymbol.escapedName) : void 0);
|
|
55554
55555
|
}
|
|
55555
55556
|
}
|
|
55556
55557
|
if (name !== originalName) {
|
|
@@ -57263,8 +57264,8 @@ function createTypeChecker(host) {
|
|
|
57263
57264
|
reportInaccessibleUniqueSymbolError() {
|
|
57264
57265
|
markError(() => oldTracker.reportInaccessibleUniqueSymbolError());
|
|
57265
57266
|
},
|
|
57266
|
-
reportLikelyUnsafeImportRequiredError(specifier) {
|
|
57267
|
-
markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier));
|
|
57267
|
+
reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
57268
|
+
markError(() => oldTracker.reportLikelyUnsafeImportRequiredError(specifier, symbolName2));
|
|
57268
57269
|
},
|
|
57269
57270
|
reportNonSerializableProperty(name) {
|
|
57270
57271
|
markError(() => oldTracker.reportNonSerializableProperty(name));
|
|
@@ -57790,7 +57791,7 @@ function createTypeChecker(host) {
|
|
|
57790
57791
|
if (!attributes) {
|
|
57791
57792
|
context.encounteredError = true;
|
|
57792
57793
|
if (context.tracker.reportLikelyUnsafeImportRequiredError) {
|
|
57793
|
-
context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier);
|
|
57794
|
+
context.tracker.reportLikelyUnsafeImportRequiredError(oldSpecifier, unescapeLeadingUnderscores(symbol.escapedName));
|
|
57794
57795
|
}
|
|
57795
57796
|
}
|
|
57796
57797
|
}
|
|
@@ -95637,11 +95638,11 @@ var SymbolTrackerImpl = class _SymbolTrackerImpl {
|
|
|
95637
95638
|
this.inner.reportCyclicStructureError();
|
|
95638
95639
|
}
|
|
95639
95640
|
}
|
|
95640
|
-
reportLikelyUnsafeImportRequiredError(specifier) {
|
|
95641
|
+
reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
95641
95642
|
var _a;
|
|
95642
95643
|
if ((_a = this.inner) == null ? void 0 : _a.reportLikelyUnsafeImportRequiredError) {
|
|
95643
95644
|
this.onDiagnosticReported();
|
|
95644
|
-
this.inner.reportLikelyUnsafeImportRequiredError(specifier);
|
|
95645
|
+
this.inner.reportLikelyUnsafeImportRequiredError(specifier, symbolName2);
|
|
95645
95646
|
}
|
|
95646
95647
|
}
|
|
95647
95648
|
reportTruncationError() {
|
|
@@ -119196,9 +119197,13 @@ function transformDeclarations(context) {
|
|
|
119196
119197
|
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), "this"));
|
|
119197
119198
|
}
|
|
119198
119199
|
}
|
|
119199
|
-
function reportLikelyUnsafeImportRequiredError(specifier) {
|
|
119200
|
+
function reportLikelyUnsafeImportRequiredError(specifier, symbolName2) {
|
|
119200
119201
|
if (errorNameNode || errorFallbackNode) {
|
|
119201
|
-
|
|
119202
|
+
if (symbolName2) {
|
|
119203
|
+
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_2_from_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier, symbolName2));
|
|
119204
|
+
} else {
|
|
119205
|
+
context.addDiagnostic(createDiagnosticForNode(errorNameNode || errorFallbackNode, Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier));
|
|
119206
|
+
}
|
|
119202
119207
|
}
|
|
119203
119208
|
}
|
|
119204
119209
|
function reportTruncationError() {
|
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": "6.0.0-dev.
|
|
5
|
+
"version": "6.0.0-dev.20260301",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "0c2c7a358297d66df690230deaed8c98e7d77c04"
|
|
119
119
|
}
|