@typescript-deploys/pr-build 6.0.0-pr-62151-19 → 6.0.0-pr-62111-9
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 +54 -91
- package/lib/lib.d.ts +0 -2
- package/lib/lib.decorators.d.ts +0 -2
- package/lib/lib.decorators.legacy.d.ts +0 -2
- package/lib/lib.dom.asynciterable.d.ts +2 -25
- package/lib/lib.dom.d.ts +580 -1
- package/lib/lib.dom.iterable.d.ts +2 -555
- package/lib/lib.es2015.collection.d.ts +0 -2
- package/lib/lib.es2015.core.d.ts +0 -2
- package/lib/lib.es2015.d.ts +0 -2
- package/lib/lib.es2015.generator.d.ts +0 -2
- package/lib/lib.es2015.iterable.d.ts +0 -2
- package/lib/lib.es2015.promise.d.ts +0 -2
- package/lib/lib.es2015.proxy.d.ts +0 -2
- package/lib/lib.es2015.reflect.d.ts +0 -2
- package/lib/lib.es2015.symbol.d.ts +0 -2
- package/lib/lib.es2015.symbol.wellknown.d.ts +0 -2
- package/lib/lib.es2016.array.include.d.ts +0 -2
- package/lib/lib.es2016.d.ts +0 -2
- package/lib/lib.es2016.full.d.ts +0 -2
- package/lib/lib.es2016.intl.d.ts +0 -2
- package/lib/lib.es2017.arraybuffer.d.ts +0 -2
- package/lib/lib.es2017.d.ts +0 -2
- package/lib/lib.es2017.date.d.ts +0 -2
- package/lib/lib.es2017.full.d.ts +0 -2
- package/lib/lib.es2017.intl.d.ts +0 -2
- package/lib/lib.es2017.object.d.ts +0 -2
- package/lib/lib.es2017.sharedmemory.d.ts +0 -2
- package/lib/lib.es2017.string.d.ts +0 -2
- package/lib/lib.es2017.typedarrays.d.ts +0 -2
- package/lib/lib.es2018.asyncgenerator.d.ts +0 -2
- package/lib/lib.es2018.asynciterable.d.ts +0 -2
- package/lib/lib.es2018.d.ts +0 -2
- package/lib/lib.es2018.full.d.ts +0 -2
- package/lib/lib.es2018.intl.d.ts +0 -2
- package/lib/lib.es2018.promise.d.ts +0 -2
- package/lib/lib.es2018.regexp.d.ts +0 -2
- package/lib/lib.es2019.array.d.ts +0 -2
- package/lib/lib.es2019.d.ts +0 -2
- package/lib/lib.es2019.full.d.ts +0 -2
- package/lib/lib.es2019.intl.d.ts +0 -2
- package/lib/lib.es2019.object.d.ts +0 -2
- package/lib/lib.es2019.string.d.ts +0 -2
- package/lib/lib.es2019.symbol.d.ts +0 -2
- package/lib/lib.es2020.bigint.d.ts +0 -2
- package/lib/lib.es2020.d.ts +0 -2
- package/lib/lib.es2020.date.d.ts +0 -2
- package/lib/lib.es2020.full.d.ts +0 -2
- package/lib/lib.es2020.intl.d.ts +0 -2
- package/lib/lib.es2020.number.d.ts +0 -2
- package/lib/lib.es2020.promise.d.ts +0 -2
- package/lib/lib.es2020.sharedmemory.d.ts +0 -2
- package/lib/lib.es2020.string.d.ts +0 -2
- package/lib/lib.es2020.symbol.wellknown.d.ts +0 -2
- package/lib/lib.es2021.d.ts +0 -2
- package/lib/lib.es2021.full.d.ts +0 -2
- package/lib/lib.es2021.intl.d.ts +0 -2
- package/lib/lib.es2021.promise.d.ts +0 -2
- package/lib/lib.es2021.string.d.ts +0 -2
- package/lib/lib.es2021.weakref.d.ts +0 -2
- package/lib/lib.es2022.array.d.ts +0 -2
- package/lib/lib.es2022.d.ts +0 -2
- package/lib/lib.es2022.error.d.ts +0 -2
- package/lib/lib.es2022.full.d.ts +0 -2
- package/lib/lib.es2022.intl.d.ts +0 -2
- package/lib/lib.es2022.object.d.ts +0 -2
- package/lib/lib.es2022.regexp.d.ts +0 -2
- package/lib/lib.es2022.string.d.ts +0 -2
- package/lib/lib.es2023.array.d.ts +0 -2
- package/lib/lib.es2023.collection.d.ts +0 -2
- package/lib/lib.es2023.d.ts +0 -2
- package/lib/lib.es2023.full.d.ts +0 -2
- package/lib/lib.es2023.intl.d.ts +0 -2
- package/lib/lib.es2024.arraybuffer.d.ts +0 -2
- package/lib/lib.es2024.collection.d.ts +0 -2
- package/lib/lib.es2024.d.ts +0 -2
- package/lib/lib.es2024.full.d.ts +0 -2
- package/lib/lib.es2024.object.d.ts +0 -2
- package/lib/lib.es2024.promise.d.ts +0 -2
- package/lib/lib.es2024.regexp.d.ts +0 -2
- package/lib/lib.es2024.sharedmemory.d.ts +0 -2
- package/lib/lib.es2024.string.d.ts +0 -2
- package/lib/lib.es5.d.ts +0 -2
- package/lib/lib.es6.d.ts +0 -2
- package/lib/lib.esnext.array.d.ts +0 -2
- package/lib/lib.esnext.collection.d.ts +0 -2
- package/lib/lib.esnext.d.ts +0 -2
- package/lib/lib.esnext.decorators.d.ts +0 -2
- package/lib/lib.esnext.disposable.d.ts +0 -2
- package/lib/lib.esnext.error.d.ts +0 -2
- package/lib/lib.esnext.float16.d.ts +0 -2
- package/lib/lib.esnext.full.d.ts +0 -2
- package/lib/lib.esnext.intl.d.ts +0 -2
- package/lib/lib.esnext.iterator.d.ts +0 -2
- package/lib/lib.esnext.promise.d.ts +0 -2
- package/lib/lib.esnext.sharedmemory.d.ts +0 -2
- package/lib/lib.scripthost.d.ts +0 -2
- package/lib/lib.webworker.asynciterable.d.ts +0 -2
- package/lib/lib.webworker.d.ts +0 -2
- package/lib/lib.webworker.importscripts.d.ts +0 -2
- package/lib/lib.webworker.iterable.d.ts +0 -2
- package/lib/typescript.d.ts +2 -9
- package/lib/typescript.js +81 -123
- package/package.json +2 -3
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-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20250926`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6068,7 +6068,7 @@ var Diagnostics = {
|
|
|
6068
6068
|
A_bigint_literal_cannot_use_exponential_notation: diag(1352, 1 /* Error */, "A_bigint_literal_cannot_use_exponential_notation_1352", "A bigint literal cannot use exponential notation."),
|
|
6069
6069
|
A_bigint_literal_must_be_an_integer: diag(1353, 1 /* Error */, "A_bigint_literal_must_be_an_integer_1353", "A bigint literal must be an integer."),
|
|
6070
6070
|
readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types: diag(1354, 1 /* Error */, "readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354", "'readonly' type modifier is only permitted on array and tuple literal types."),
|
|
6071
|
-
|
|
6071
|
+
A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals: diag(1355, 1 /* Error */, "A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_o_1355", "A 'const' assertion can only be applied to references to enum members, or string, number, boolean, array, or object literals."),
|
|
6072
6072
|
Did_you_mean_to_mark_this_function_as_async: diag(1356, 1 /* Error */, "Did_you_mean_to_mark_this_function_as_async_1356", "Did you mean to mark this function as 'async'?"),
|
|
6073
6073
|
An_enum_member_name_must_be_followed_by_a_or: diag(1357, 1 /* Error */, "An_enum_member_name_must_be_followed_by_a_or_1357", "An enum member name must be followed by a ',', '=', or '}'."),
|
|
6074
6074
|
Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, 1 /* Error */, "Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358", "Tagged template expressions are not permitted in an optional chain."),
|
|
@@ -6832,6 +6832,7 @@ var Diagnostics = {
|
|
|
6832
6832
|
Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found: diag(2879, 1 /* Error */, "Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found_2879", "Using JSX fragments requires fragment factory '{0}' to be in scope, but it could not be found."),
|
|
6833
6833
|
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'."),
|
|
6834
6834
|
This_expression_is_never_nullish: diag(2881, 1 /* Error */, "This_expression_is_never_nullish_2881", "This expression is never nullish."),
|
|
6835
|
+
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}'."),
|
|
6835
6836
|
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}'."),
|
|
6836
6837
|
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}'."),
|
|
6837
6838
|
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}'."),
|
|
@@ -18853,7 +18854,7 @@ function skipTypeCheckingIgnoringNoCheck(sourceFile, options, host) {
|
|
|
18853
18854
|
);
|
|
18854
18855
|
}
|
|
18855
18856
|
function skipTypeCheckingWorker(sourceFile, options, host, ignoreNoCheck) {
|
|
18856
|
-
return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile
|
|
18857
|
+
return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && host.isSourceFileDefaultLibrary(sourceFile) || !ignoreNoCheck && options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) || !canIncludeBindAndCheckDiagnostics(sourceFile, options);
|
|
18857
18858
|
}
|
|
18858
18859
|
function canIncludeBindAndCheckDiagnostics(sourceFile, options) {
|
|
18859
18860
|
if (!!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false) return false;
|
|
@@ -24258,8 +24259,17 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
24258
24259
|
node.transformFlags = propagateChildrenFlags(node.statements) | propagateChildFlags(node.endOfFileToken);
|
|
24259
24260
|
return node;
|
|
24260
24261
|
}
|
|
24261
|
-
function updateSourceFile(node, statements, isDeclarationFile = node.isDeclarationFile, referencedFiles = node.referencedFiles, typeReferenceDirectives = node.typeReferenceDirectives,
|
|
24262
|
-
return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.
|
|
24262
|
+
function updateSourceFile(node, statements, isDeclarationFile = node.isDeclarationFile, referencedFiles = node.referencedFiles, typeReferenceDirectives = node.typeReferenceDirectives, _hasNoDefaultLib = false, libReferenceDirectives = node.libReferenceDirectives) {
|
|
24263
|
+
return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(
|
|
24264
|
+
node,
|
|
24265
|
+
statements,
|
|
24266
|
+
isDeclarationFile,
|
|
24267
|
+
referencedFiles,
|
|
24268
|
+
typeReferenceDirectives,
|
|
24269
|
+
/*hasNoDefaultLib*/
|
|
24270
|
+
false,
|
|
24271
|
+
libReferenceDirectives
|
|
24272
|
+
), node) : node;
|
|
24263
24273
|
}
|
|
24264
24274
|
function createBundle(sourceFiles) {
|
|
24265
24275
|
const node = createBaseNode(309 /* Bundle */);
|
|
@@ -24267,7 +24277,6 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
24267
24277
|
node.syntheticFileReferences = void 0;
|
|
24268
24278
|
node.syntheticTypeReferences = void 0;
|
|
24269
24279
|
node.syntheticLibReferences = void 0;
|
|
24270
|
-
node.hasNoDefaultLib = void 0;
|
|
24271
24280
|
return node;
|
|
24272
24281
|
}
|
|
24273
24282
|
function updateBundle(node, sourceFiles) {
|
|
@@ -36170,7 +36179,6 @@ function processPragmasIntoFields(context, reportDiagnostic) {
|
|
|
36170
36179
|
context.typeReferenceDirectives = [];
|
|
36171
36180
|
context.libReferenceDirectives = [];
|
|
36172
36181
|
context.amdDependencies = [];
|
|
36173
|
-
context.hasNoDefaultLib = false;
|
|
36174
36182
|
context.pragmas.forEach((entryOrList, key) => {
|
|
36175
36183
|
switch (key) {
|
|
36176
36184
|
case "reference": {
|
|
@@ -36181,7 +36189,6 @@ function processPragmasIntoFields(context, reportDiagnostic) {
|
|
|
36181
36189
|
const { types, lib, path, ["resolution-mode"]: res, preserve: _preserve } = arg.arguments;
|
|
36182
36190
|
const preserve = _preserve === "true" ? true : void 0;
|
|
36183
36191
|
if (arg.arguments["no-default-lib"] === "true") {
|
|
36184
|
-
context.hasNoDefaultLib = true;
|
|
36185
36192
|
} else if (types) {
|
|
36186
36193
|
const parsed = parseResolutionMode(res, types.pos, types.end, reportDiagnostic);
|
|
36187
36194
|
typeReferenceDirectives.push({ pos: types.pos, end: types.end, fileName: types.value, ...parsed ? { resolutionMode: parsed } : {}, ...preserve ? { preserve } : {} });
|
|
@@ -37054,7 +37061,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37054
37061
|
affectsProgramStructure: true,
|
|
37055
37062
|
category: Diagnostics.Language_and_Environment,
|
|
37056
37063
|
description: Diagnostics.Enable_lib_replacement,
|
|
37057
|
-
defaultValueDescription:
|
|
37064
|
+
defaultValueDescription: false
|
|
37058
37065
|
},
|
|
37059
37066
|
// Strict Type Checks
|
|
37060
37067
|
{
|
|
@@ -37421,7 +37428,7 @@ var commandOptionsWithoutBuild = [
|
|
|
37421
37428
|
affectsBuildInfo: true,
|
|
37422
37429
|
category: Diagnostics.Modules,
|
|
37423
37430
|
description: Diagnostics.Check_side_effect_imports,
|
|
37424
|
-
defaultValueDescription:
|
|
37431
|
+
defaultValueDescription: true
|
|
37425
37432
|
},
|
|
37426
37433
|
// Source Maps
|
|
37427
37434
|
{
|
|
@@ -41657,7 +41664,9 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
|
|
|
41657
41664
|
const subTarget = target[condition];
|
|
41658
41665
|
const result = loadModuleFromTargetExportOrImport(subTarget, subpath, pattern, key);
|
|
41659
41666
|
if (result) {
|
|
41660
|
-
|
|
41667
|
+
if (result.value) {
|
|
41668
|
+
traceIfEnabled(state, Diagnostics.Resolved_under_condition_0, condition);
|
|
41669
|
+
}
|
|
41661
41670
|
traceIfEnabled(state, Diagnostics.Exiting_conditional_exports);
|
|
41662
41671
|
return result;
|
|
41663
41672
|
} else {
|
|
@@ -41690,10 +41699,7 @@ function getLoadModuleFromTargetExportOrImport(extensions, state, cache, redirec
|
|
|
41690
41699
|
if (state.traceEnabled) {
|
|
41691
41700
|
trace(state.host, Diagnostics.package_json_scope_0_explicitly_maps_specifier_1_to_null, scope.packageDirectory, moduleName);
|
|
41692
41701
|
}
|
|
41693
|
-
return
|
|
41694
|
-
/*value*/
|
|
41695
|
-
void 0
|
|
41696
|
-
);
|
|
41702
|
+
return { value: void 0 };
|
|
41697
41703
|
}
|
|
41698
41704
|
if (state.traceEnabled) {
|
|
41699
41705
|
trace(state.host, Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1, scope.packageDirectory, moduleName);
|
|
@@ -46435,7 +46441,7 @@ function createTypeChecker(host) {
|
|
|
46435
46441
|
var noImplicitThis = getStrictOptionValue(compilerOptions, "noImplicitThis");
|
|
46436
46442
|
var useUnknownInCatchVariables = getStrictOptionValue(compilerOptions, "useUnknownInCatchVariables");
|
|
46437
46443
|
var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;
|
|
46438
|
-
var noUncheckedSideEffectImports =
|
|
46444
|
+
var noUncheckedSideEffectImports = compilerOptions.noUncheckedSideEffectImports !== false;
|
|
46439
46445
|
var checkBinaryExpression = createCheckBinaryExpression();
|
|
46440
46446
|
var emitResolver = createResolver();
|
|
46441
46447
|
var nodeBuilder = createNodeBuilder();
|
|
@@ -49411,9 +49417,9 @@ function createTypeChecker(host) {
|
|
|
49411
49417
|
}
|
|
49412
49418
|
}
|
|
49413
49419
|
}
|
|
49414
|
-
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) {
|
|
49420
|
+
function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors, errorMessage) {
|
|
49415
49421
|
const isClassic = getEmitModuleResolutionKind(compilerOptions) === 1 /* Classic */;
|
|
49416
|
-
|
|
49422
|
+
errorMessage ?? (errorMessage = isClassic ? Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option : Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations);
|
|
49417
49423
|
return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? void 0 : errorMessage, ignoreErrors);
|
|
49418
49424
|
}
|
|
49419
49425
|
function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, ignoreErrors = false, isForAugmentation = false) {
|
|
@@ -64079,14 +64085,14 @@ function createTypeChecker(host) {
|
|
|
64079
64085
|
let issuedElaboration = false;
|
|
64080
64086
|
if (!targetProp) {
|
|
64081
64087
|
const indexInfo = getApplicableIndexInfo(target, nameType);
|
|
64082
|
-
if (indexInfo && indexInfo.declaration && !getSourceFileOfNode(indexInfo.declaration)
|
|
64088
|
+
if (indexInfo && indexInfo.declaration && !host.isSourceFileDefaultLibrary(getSourceFileOfNode(indexInfo.declaration))) {
|
|
64083
64089
|
issuedElaboration = true;
|
|
64084
64090
|
addRelatedInfo(reportedDiag, createDiagnosticForNode(indexInfo.declaration, Diagnostics.The_expected_type_comes_from_this_index_signature));
|
|
64085
64091
|
}
|
|
64086
64092
|
}
|
|
64087
64093
|
if (!issuedElaboration && (targetProp && length(targetProp.declarations) || target.symbol && length(target.symbol.declarations))) {
|
|
64088
64094
|
const targetNode = targetProp && length(targetProp.declarations) ? targetProp.declarations[0] : target.symbol.declarations[0];
|
|
64089
|
-
if (!getSourceFileOfNode(targetNode)
|
|
64095
|
+
if (!host.isSourceFileDefaultLibrary(getSourceFileOfNode(targetNode))) {
|
|
64090
64096
|
addRelatedInfo(
|
|
64091
64097
|
reportedDiag,
|
|
64092
64098
|
createDiagnosticForNode(
|
|
@@ -67739,13 +67745,6 @@ function createTypeChecker(host) {
|
|
|
67739
67745
|
return mapType(type, getDefinitelyFalsyPartOfType);
|
|
67740
67746
|
}
|
|
67741
67747
|
function getDefinitelyFalsyPartOfType(type) {
|
|
67742
|
-
if (type.flags & 262144 /* TypeParameter */) {
|
|
67743
|
-
const constraint = getBaseConstraintOfType(type);
|
|
67744
|
-
if (!constraint || constraint === type) {
|
|
67745
|
-
return neverType;
|
|
67746
|
-
}
|
|
67747
|
-
return getDefinitelyFalsyPartOfType(constraint);
|
|
67748
|
-
}
|
|
67749
67748
|
return type.flags & 4 /* String */ ? emptyStringType : type.flags & 8 /* Number */ ? zeroType : type.flags & 64 /* BigInt */ ? zeroBigIntType : type === regularFalseType || type === falseType || type.flags & (16384 /* Void */ | 32768 /* Undefined */ | 65536 /* Null */ | 3 /* AnyOrUnknown */) || type.flags & 128 /* StringLiteral */ && type.value === "" || type.flags & 256 /* NumberLiteral */ && type.value === 0 || type.flags & 2048 /* BigIntLiteral */ && isZeroBigInt(type) ? type : neverType;
|
|
67750
67749
|
}
|
|
67751
67750
|
function getNullableType(type, flags) {
|
|
@@ -77786,7 +77785,7 @@ function createTypeChecker(host) {
|
|
|
77786
77785
|
const exprType = checkExpression(expression, checkMode);
|
|
77787
77786
|
if (isConstTypeReference(type)) {
|
|
77788
77787
|
if (!isValidConstAssertionArgument(expression)) {
|
|
77789
|
-
error(expression, Diagnostics.
|
|
77788
|
+
error(expression, Diagnostics.A_const_assertion_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals);
|
|
77790
77789
|
}
|
|
77791
77790
|
return getRegularTypeOfLiteralType(exprType);
|
|
77792
77791
|
}
|
|
@@ -86058,7 +86057,13 @@ function createTypeChecker(host) {
|
|
|
86058
86057
|
error(node.moduleSpecifier, Diagnostics.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0, ModuleKind[moduleKind]);
|
|
86059
86058
|
}
|
|
86060
86059
|
} else if (noUncheckedSideEffectImports && !importClause) {
|
|
86061
|
-
void resolveExternalModuleName(
|
|
86060
|
+
void resolveExternalModuleName(
|
|
86061
|
+
node,
|
|
86062
|
+
node.moduleSpecifier,
|
|
86063
|
+
/*ignoreErrors*/
|
|
86064
|
+
void 0,
|
|
86065
|
+
Diagnostics.Cannot_find_module_or_type_declarations_for_side_effect_import_of_0
|
|
86066
|
+
);
|
|
86062
86067
|
}
|
|
86063
86068
|
}
|
|
86064
86069
|
checkImportAttributes(node);
|
|
@@ -113911,11 +113916,9 @@ function transformDeclarations(context) {
|
|
|
113911
113916
|
rawReferencedFiles = [];
|
|
113912
113917
|
rawTypeReferenceDirectives = [];
|
|
113913
113918
|
rawLibReferenceDirectives = [];
|
|
113914
|
-
let hasNoDefaultLib = false;
|
|
113915
113919
|
const bundle = factory2.createBundle(
|
|
113916
113920
|
map(node.sourceFiles, (sourceFile) => {
|
|
113917
113921
|
if (sourceFile.isDeclarationFile) return void 0;
|
|
113918
|
-
hasNoDefaultLib = hasNoDefaultLib || sourceFile.hasNoDefaultLib;
|
|
113919
113922
|
currentSourceFile = sourceFile;
|
|
113920
113923
|
enclosingDeclaration = sourceFile;
|
|
113921
113924
|
lateMarkedStatements = void 0;
|
|
@@ -113976,7 +113979,6 @@ function transformDeclarations(context) {
|
|
|
113976
113979
|
bundle.syntheticFileReferences = getReferencedFiles(outputFilePath2);
|
|
113977
113980
|
bundle.syntheticTypeReferences = getTypeReferences();
|
|
113978
113981
|
bundle.syntheticLibReferences = getLibReferences();
|
|
113979
|
-
bundle.hasNoDefaultLib = hasNoDefaultLib;
|
|
113980
113982
|
return bundle;
|
|
113981
113983
|
}
|
|
113982
113984
|
needsDeclare = true;
|
|
@@ -114017,7 +114019,8 @@ function transformDeclarations(context) {
|
|
|
114017
114019
|
true,
|
|
114018
114020
|
getReferencedFiles(outputFilePath),
|
|
114019
114021
|
getTypeReferences(),
|
|
114020
|
-
|
|
114022
|
+
/*hasNoDefaultLib*/
|
|
114023
|
+
false,
|
|
114021
114024
|
getLibReferences()
|
|
114022
114025
|
);
|
|
114023
114026
|
function collectFileReferences(sourceFile) {
|
|
@@ -119176,16 +119179,12 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
119176
119179
|
emitSourceFileWorker(node);
|
|
119177
119180
|
}
|
|
119178
119181
|
function emitSyntheticTripleSlashReferencesIfNeeded(node) {
|
|
119179
|
-
emitTripleSlashDirectives(
|
|
119182
|
+
emitTripleSlashDirectives(node.syntheticFileReferences || [], node.syntheticTypeReferences || [], node.syntheticLibReferences || []);
|
|
119180
119183
|
}
|
|
119181
119184
|
function emitTripleSlashDirectivesIfNeeded(node) {
|
|
119182
|
-
if (node.isDeclarationFile) emitTripleSlashDirectives(node.
|
|
119185
|
+
if (node.isDeclarationFile) emitTripleSlashDirectives(node.referencedFiles, node.typeReferenceDirectives, node.libReferenceDirectives);
|
|
119183
119186
|
}
|
|
119184
|
-
function emitTripleSlashDirectives(
|
|
119185
|
-
if (hasNoDefaultLib) {
|
|
119186
|
-
writeComment(`/// <reference no-default-lib="true"/>`);
|
|
119187
|
-
writeLine();
|
|
119188
|
-
}
|
|
119187
|
+
function emitTripleSlashDirectives(files, types, libs2) {
|
|
119189
119188
|
if (currentSourceFile && currentSourceFile.moduleName) {
|
|
119190
119189
|
writeComment(`/// <amd-module name="${currentSourceFile.moduleName}" />`);
|
|
119191
119190
|
writeLine();
|
|
@@ -122132,7 +122131,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
122132
122131
|
mark("beforeProgram");
|
|
122133
122132
|
const host = createProgramOptionsHost || createCompilerHost(options);
|
|
122134
122133
|
const configParsingHost = parseConfigHostFromCompilerHostLike(host);
|
|
122135
|
-
let skipDefaultLib = options.noLib;
|
|
122136
122134
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
|
122137
122135
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
|
122138
122136
|
let skipVerifyCompilerOptions = false;
|
|
@@ -122220,6 +122218,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
122220
122218
|
let redirectTargetsMap = createMultiMap();
|
|
122221
122219
|
let usesUriStyleNodeCoreModules;
|
|
122222
122220
|
const filesByName = /* @__PURE__ */ new Map();
|
|
122221
|
+
const libFiles = /* @__PURE__ */ new Set();
|
|
122223
122222
|
let missingFileNames = /* @__PURE__ */ new Map();
|
|
122224
122223
|
const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
|
|
122225
122224
|
let resolvedProjectReferences;
|
|
@@ -122281,8 +122280,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
122281
122280
|
name,
|
|
122282
122281
|
/*isDefaultLib*/
|
|
122283
122282
|
false,
|
|
122284
|
-
/*ignoreNoDefaultLib*/
|
|
122285
|
-
false,
|
|
122286
122283
|
{ kind: 0 /* RootFile */, index }
|
|
122287
122284
|
));
|
|
122288
122285
|
(_j = tracing) == null ? void 0 : _j.pop();
|
|
@@ -122314,15 +122311,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
122314
122311
|
}
|
|
122315
122312
|
(_n = tracing) == null ? void 0 : _n.pop();
|
|
122316
122313
|
}
|
|
122317
|
-
if (rootNames.length && !
|
|
122314
|
+
if (rootNames.length && !options.noLib) {
|
|
122318
122315
|
const defaultLibraryFileName = getDefaultLibraryFileName();
|
|
122319
122316
|
if (!options.lib && defaultLibraryFileName) {
|
|
122317
|
+
libFiles.add(toPath3(defaultLibraryFileName));
|
|
122320
122318
|
processRootFile(
|
|
122321
122319
|
defaultLibraryFileName,
|
|
122322
122320
|
/*isDefaultLib*/
|
|
122323
122321
|
true,
|
|
122324
|
-
/*ignoreNoDefaultLib*/
|
|
122325
|
-
false,
|
|
122326
122322
|
{ kind: 6 /* LibFile */ }
|
|
122327
122323
|
);
|
|
122328
122324
|
} else {
|
|
@@ -122331,8 +122327,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
122331
122327
|
pathForLibFile(libFileName),
|
|
122332
122328
|
/*isDefaultLib*/
|
|
122333
122329
|
true,
|
|
122334
|
-
/*ignoreNoDefaultLib*/
|
|
122335
|
-
false,
|
|
122336
122330
|
{ kind: 6 /* LibFile */, index }
|
|
122337
122331
|
);
|
|
122338
122332
|
});
|
|
@@ -122843,8 +122837,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
122843
122837
|
structureIsReused = 1 /* SafeModules */;
|
|
122844
122838
|
} else if (!arrayIsEqualTo(oldSourceFile.libReferenceDirectives, newSourceFile.libReferenceDirectives, fileReferenceIsEqualTo)) {
|
|
122845
122839
|
structureIsReused = 1 /* SafeModules */;
|
|
122846
|
-
} else if (oldSourceFile.hasNoDefaultLib !== newSourceFile.hasNoDefaultLib) {
|
|
122847
|
-
structureIsReused = 1 /* SafeModules */;
|
|
122848
122840
|
} else if (!arrayIsEqualTo(oldSourceFile.referencedFiles, newSourceFile.referencedFiles, fileReferenceIsEqualTo)) {
|
|
122849
122841
|
structureIsReused = 1 /* SafeModules */;
|
|
122850
122842
|
} else {
|
|
@@ -123026,24 +123018,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123026
123018
|
return !!sourceFilesFoundSearchingNodeModules.get(file.path);
|
|
123027
123019
|
}
|
|
123028
123020
|
function isSourceFileDefaultLibrary(file) {
|
|
123029
|
-
|
|
123030
|
-
return false;
|
|
123031
|
-
}
|
|
123032
|
-
if (file.hasNoDefaultLib) {
|
|
123033
|
-
return true;
|
|
123034
|
-
}
|
|
123035
|
-
if (options.noLib) {
|
|
123036
|
-
return false;
|
|
123037
|
-
}
|
|
123038
|
-
const equalityComparer = host.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive;
|
|
123039
|
-
if (!options.lib) {
|
|
123040
|
-
return equalityComparer(file.fileName, getDefaultLibraryFileName());
|
|
123041
|
-
} else {
|
|
123042
|
-
return some(options.lib, (libFileName) => {
|
|
123043
|
-
const resolvedLib = resolvedLibReferences.get(libFileName);
|
|
123044
|
-
return !!resolvedLib && equalityComparer(file.fileName, resolvedLib.actual);
|
|
123045
|
-
});
|
|
123046
|
-
}
|
|
123021
|
+
return libFiles.has(file.path);
|
|
123047
123022
|
}
|
|
123048
123023
|
function getTypeChecker() {
|
|
123049
123024
|
return typeChecker || (typeChecker = createTypeChecker(program));
|
|
@@ -123524,11 +123499,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123524
123499
|
function getConfigFileParsingDiagnostics2() {
|
|
123525
123500
|
return configFileParsingDiagnostics || emptyArray;
|
|
123526
123501
|
}
|
|
123527
|
-
function processRootFile(fileName, isDefaultLib,
|
|
123502
|
+
function processRootFile(fileName, isDefaultLib, reason) {
|
|
123528
123503
|
processSourceFile(
|
|
123529
123504
|
normalizePath(fileName),
|
|
123530
123505
|
isDefaultLib,
|
|
123531
|
-
ignoreNoDefaultLib,
|
|
123532
123506
|
/*packageId*/
|
|
123533
123507
|
void 0,
|
|
123534
123508
|
reason
|
|
@@ -123693,10 +123667,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123693
123667
|
return sourceFileWithAddedExtension;
|
|
123694
123668
|
}
|
|
123695
123669
|
}
|
|
123696
|
-
function processSourceFile(fileName, isDefaultLib,
|
|
123670
|
+
function processSourceFile(fileName, isDefaultLib, packageId, reason) {
|
|
123697
123671
|
getSourceFileFromReferenceWorker(
|
|
123698
123672
|
fileName,
|
|
123699
|
-
(fileName2) => findSourceFile(fileName2, isDefaultLib,
|
|
123673
|
+
(fileName2) => findSourceFile(fileName2, isDefaultLib, reason, packageId),
|
|
123700
123674
|
// TODO: GH#18217
|
|
123701
123675
|
(diagnostic, ...args) => addFilePreprocessingFileExplainingDiagnostic(
|
|
123702
123676
|
/*file*/
|
|
@@ -123713,8 +123687,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123713
123687
|
fileName,
|
|
123714
123688
|
/*isDefaultLib*/
|
|
123715
123689
|
false,
|
|
123716
|
-
/*ignoreNoDefaultLib*/
|
|
123717
|
-
false,
|
|
123718
123690
|
/*packageId*/
|
|
123719
123691
|
void 0,
|
|
123720
123692
|
reason
|
|
@@ -123740,14 +123712,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123740
123712
|
sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0);
|
|
123741
123713
|
return redirect;
|
|
123742
123714
|
}
|
|
123743
|
-
function findSourceFile(fileName, isDefaultLib,
|
|
123715
|
+
function findSourceFile(fileName, isDefaultLib, reason, packageId) {
|
|
123744
123716
|
var _a2, _b2;
|
|
123745
123717
|
(_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "findSourceFile", {
|
|
123746
123718
|
fileName,
|
|
123747
123719
|
isDefaultLib: isDefaultLib || void 0,
|
|
123748
123720
|
fileIncludeKind: FileIncludeKind[reason.kind]
|
|
123749
123721
|
});
|
|
123750
|
-
const result = findSourceFileWorker(fileName, isDefaultLib,
|
|
123722
|
+
const result = findSourceFileWorker(fileName, isDefaultLib, reason, packageId);
|
|
123751
123723
|
(_b2 = tracing) == null ? void 0 : _b2.pop();
|
|
123752
123724
|
return result;
|
|
123753
123725
|
}
|
|
@@ -123757,7 +123729,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123757
123729
|
const setExternalModuleIndicator2 = getSetExternalModuleIndicator(options2);
|
|
123758
123730
|
return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode };
|
|
123759
123731
|
}
|
|
123760
|
-
function findSourceFileWorker(fileName, isDefaultLib,
|
|
123732
|
+
function findSourceFileWorker(fileName, isDefaultLib, reason, packageId) {
|
|
123761
123733
|
var _a2, _b2;
|
|
123762
123734
|
const path = toPath3(fileName);
|
|
123763
123735
|
if (useSourceOfProjectReferenceRedirect) {
|
|
@@ -123767,7 +123739,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123767
123739
|
if (realPath2 !== path) source = getRedirectFromOutput(realPath2);
|
|
123768
123740
|
}
|
|
123769
123741
|
if (source == null ? void 0 : source.source) {
|
|
123770
|
-
const file2 = findSourceFile(source.source, isDefaultLib,
|
|
123742
|
+
const file2 = findSourceFile(source.source, isDefaultLib, reason, packageId);
|
|
123771
123743
|
if (file2) addFileToFilesByName(
|
|
123772
123744
|
file2,
|
|
123773
123745
|
path,
|
|
@@ -123887,7 +123859,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123887
123859
|
filesByNameIgnoreCase.set(pathLowerCase, file);
|
|
123888
123860
|
}
|
|
123889
123861
|
}
|
|
123890
|
-
skipDefaultLib = skipDefaultLib || file.hasNoDefaultLib && !ignoreNoDefaultLib;
|
|
123891
123862
|
if (!options.noResolve) {
|
|
123892
123863
|
processReferencedFiles(file, isDefaultLib);
|
|
123893
123864
|
processTypeReferenceDirectives(file);
|
|
@@ -123948,8 +123919,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123948
123919
|
processSourceFile(
|
|
123949
123920
|
resolveTripleslashReference(ref.fileName, file.fileName),
|
|
123950
123921
|
isDefaultLib,
|
|
123951
|
-
/*ignoreNoDefaultLib*/
|
|
123952
|
-
false,
|
|
123953
123922
|
/*packageId*/
|
|
123954
123923
|
void 0,
|
|
123955
123924
|
{ kind: 4 /* ReferenceFile */, file: file.path, index }
|
|
@@ -123990,8 +123959,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
123990
123959
|
resolvedTypeReferenceDirective.resolvedFileName,
|
|
123991
123960
|
/*isDefaultLib*/
|
|
123992
123961
|
false,
|
|
123993
|
-
/*ignoreNoDefaultLib*/
|
|
123994
|
-
false,
|
|
123995
123962
|
resolvedTypeReferenceDirective.packageId,
|
|
123996
123963
|
reason
|
|
123997
123964
|
);
|
|
@@ -124011,13 +123978,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124011
123978
|
if (existing) return existing.actual;
|
|
124012
123979
|
const result = pathForLibFileWorker(libFileName);
|
|
124013
123980
|
(resolvedLibReferences ?? (resolvedLibReferences = /* @__PURE__ */ new Map())).set(libFileName, result);
|
|
123981
|
+
libFiles.add(toPath3(result.actual));
|
|
124014
123982
|
return result.actual;
|
|
124015
123983
|
}
|
|
124016
123984
|
function pathForLibFileWorker(libFileName) {
|
|
124017
123985
|
var _a2, _b2, _c2, _d2, _e2;
|
|
124018
123986
|
const existing = resolvedLibProcessing == null ? void 0 : resolvedLibProcessing.get(libFileName);
|
|
124019
123987
|
if (existing) return existing;
|
|
124020
|
-
if (options.libReplacement
|
|
123988
|
+
if (!options.libReplacement) {
|
|
124021
123989
|
const result2 = {
|
|
124022
123990
|
resolution: {
|
|
124023
123991
|
resolvedModule: void 0
|
|
@@ -124069,8 +124037,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124069
124037
|
pathForLibFile(libFileName),
|
|
124070
124038
|
/*isDefaultLib*/
|
|
124071
124039
|
true,
|
|
124072
|
-
/*ignoreNoDefaultLib*/
|
|
124073
|
-
true,
|
|
124074
124040
|
{ kind: 7 /* LibReferenceDirective */, file: file.path, index }
|
|
124075
124041
|
);
|
|
124076
124042
|
} else {
|
|
@@ -124118,8 +124084,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124118
124084
|
resolvedFileName,
|
|
124119
124085
|
/*isDefaultLib*/
|
|
124120
124086
|
false,
|
|
124121
|
-
/*ignoreNoDefaultLib*/
|
|
124122
|
-
false,
|
|
124123
124087
|
{ kind: 3 /* Import */, file: file.path, index },
|
|
124124
124088
|
resolution.packageId
|
|
124125
124089
|
);
|
|
@@ -124223,10 +124187,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124223
124187
|
}
|
|
124224
124188
|
const getCommonSourceDirectory3 = memoize(() => getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()));
|
|
124225
124189
|
commandLine.fileNames.forEach((fileName) => {
|
|
124226
|
-
if (isDeclarationFileName(fileName)) return;
|
|
124227
124190
|
const path = toPath3(fileName);
|
|
124228
124191
|
let outputDts;
|
|
124229
|
-
if (!fileExtensionIs(fileName, ".json" /* Json */)) {
|
|
124192
|
+
if (!isDeclarationFileName(fileName) && !fileExtensionIs(fileName, ".json" /* Json */)) {
|
|
124230
124193
|
if (!commandLine.options.outFile) {
|
|
124231
124194
|
outputDts = getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory3);
|
|
124232
124195
|
mapOutputFileToResolvedRef.set(toPath3(outputDts), { resolvedRef, source: fileName });
|
|
@@ -125873,7 +125836,7 @@ function createBuilderProgramState(newProgram, oldState) {
|
|
|
125873
125836
|
}
|
|
125874
125837
|
if (canCopySemanticDiagnostics) {
|
|
125875
125838
|
if (sourceFile.isDeclarationFile && !copyDeclarationFileDiagnostics) return;
|
|
125876
|
-
if (sourceFile
|
|
125839
|
+
if (newProgram.isSourceFileDefaultLibrary(sourceFile) && !copyLibFileDiagnostics) return;
|
|
125877
125840
|
const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
|
|
125878
125841
|
if (diagnostics) {
|
|
125879
125842
|
state.semanticDiagnosticsPerFile.set(
|
package/lib/lib.d.ts
CHANGED
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
|
18
|
-
|
|
19
17
|
/// <reference lib="es5" />
|
|
20
18
|
/// <reference lib="dom" />
|
|
21
19
|
/// <reference lib="webworker.importscripts" />
|
package/lib/lib.decorators.d.ts
CHANGED
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
|
18
|
-
|
|
19
17
|
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
|
|
20
18
|
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
|
|
21
19
|
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
|
@@ -14,28 +14,5 @@ and limitations under the License.
|
|
|
14
14
|
***************************************************************************** */
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/////////////////////////////
|
|
20
|
-
/// Window Async Iterable APIs
|
|
21
|
-
/////////////////////////////
|
|
22
|
-
|
|
23
|
-
interface FileSystemDirectoryHandleAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
24
|
-
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<T>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
interface FileSystemDirectoryHandle {
|
|
28
|
-
[Symbol.asyncIterator](): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
|
|
29
|
-
entries(): FileSystemDirectoryHandleAsyncIterator<[string, FileSystemHandle]>;
|
|
30
|
-
keys(): FileSystemDirectoryHandleAsyncIterator<string>;
|
|
31
|
-
values(): FileSystemDirectoryHandleAsyncIterator<FileSystemHandle>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
interface ReadableStreamAsyncIterator<T> extends AsyncIteratorObject<T, BuiltinIteratorReturn, unknown> {
|
|
35
|
-
[Symbol.asyncIterator](): ReadableStreamAsyncIterator<T>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
interface ReadableStream<R = any> {
|
|
39
|
-
[Symbol.asyncIterator](options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
40
|
-
values(options?: ReadableStreamIteratorOptions): ReadableStreamAsyncIterator<R>;
|
|
41
|
-
}
|
|
17
|
+
// This file's contents are now included in the main DOM types.
|
|
18
|
+
// The file has been left for backward compatibility.
|