From bb283041505dd97bf0b3114e59b91c4947caf6af Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Tue, 12 Aug 2025 20:47:04 -0700 Subject: [PATCH 1/3] Fix getSymbolAtLocation for importCall --- internal/checker/checker.go | 2 +- ...oToDefinitionDynamicImport1.baseline.jsonc | 8 +- ...esNotUseReexportedNamespaceAsLocal.symbols | 1 + ...UseReexportedNamespaceAsLocal.symbols.diff | 10 - ...nEmitExportAliasVisibiilityMarking.symbols | 1 + ...ExportAliasVisibiilityMarking.symbols.diff | 4 +- .../dynamicImportsDeclaration.symbols | 5 + .../dynamicImportsDeclaration.symbols.diff | 17 - ...rorForConflictingExportEqualsValue.symbols | 1 + ...rConflictingExportEqualsValue.symbols.diff | 7 - .../esModuleInteropImportCall.symbols | 1 + .../esModuleInteropImportCall.symbols.diff | 4 +- ...oSynthesizedDefault(module=esnext).symbols | 1 + ...hesizedDefault(module=esnext).symbols.diff | 10 - ...ynthesizedDefault(module=preserve).symbols | 1 + ...sizedDefault(module=preserve).symbols.diff | 10 - ...nsForbiddenInParameterInitializers.symbols | 1 + ...biddenInParameterInitializers.symbols.diff | 10 - ...leNoneDynamicImport(target=es2015).symbols | 1 + ...eDynamicImport(target=es2015).symbols.diff | 9 - ...leNoneDynamicImport(target=es2020).symbols | 1 + ...eDynamicImport(target=es2020).symbols.diff | 9 - .../compiler/modulePreserve4.symbols | 3 + .../compiler/modulePreserve4.symbols.diff | 14 +- .../compiler/parseAssertEntriesError.symbols | 1 + .../parseAssertEntriesError.symbols.diff | 10 - .../parseImportAttributesError.symbols | 1 + .../parseImportAttributesError.symbols.diff | 10 - .../allowsImportingTsExtension.symbols | 2 + .../allowsImportingTsExtension.symbols.diff | 15 - ...rSyntaxRestrictions(module=esnext).symbols | 2 + ...axRestrictions(module=esnext).symbols.diff | 3 +- ...yntaxRestrictions(module=preserve).symbols | 2 + ...Restrictions(module=preserve).symbols.diff | 3 +- .../importAssertion1(module=commonjs).symbols | 8 + ...rtAssertion1(module=commonjs).symbols.diff | 50 - .../importAssertion1(module=es2015).symbols | 8 + ...portAssertion1(module=es2015).symbols.diff | 50 - .../importAssertion1(module=esnext).symbols | 8 + ...portAssertion1(module=esnext).symbols.diff | 50 - ...importAttributes1(module=commonjs).symbols | 8 + ...tAttributes1(module=commonjs).symbols.diff | 50 - .../importAttributes1(module=es2015).symbols | 8 + ...ortAttributes1(module=es2015).symbols.diff | 50 - .../importAttributes1(module=esnext).symbols | 8 + ...ortAttributes1(module=esnext).symbols.diff | 50 - .../conformance/importAttributes7.symbols | 1 + .../importAttributes7.symbols.diff | 10 - .../conformance/importAttributes9.symbols | 2 + .../importAttributes9.symbols.diff | 5 +- .../importCallExpression1ES2020.symbols | 5 + .../importCallExpression1ES2020.symbols.diff | 26 +- .../importCallExpression2ES2020.symbols | 1 + .../importCallExpression2ES2020.symbols.diff | 7 +- .../importCallExpression3ES2020.symbols | 1 + .../importCallExpression3ES2020.symbols.diff | 10 +- .../importCallExpression4ES2020.symbols | 3 + .../importCallExpression4ES2020.symbols.diff | 14 +- .../importCallExpressionAsyncES2020.symbols | 5 + ...portCallExpressionAsyncES2020.symbols.diff | 38 +- .../importCallExpressionAsyncES5CJS.symbols | 5 + ...portCallExpressionAsyncES5CJS.symbols.diff | 38 +- .../importCallExpressionAsyncES6CJS.symbols | 5 + ...portCallExpressionAsyncES6CJS.symbols.diff | 38 +- ...portCallExpressionCheckReturntype1.symbols | 3 + ...allExpressionCheckReturntype1.symbols.diff | 3 + ...portCallExpressionDeclarationEmit2.symbols | 1 + ...allExpressionDeclarationEmit2.symbols.diff | 7 - ...portCallExpressionDeclarationEmit3.symbols | 3 + ...allExpressionDeclarationEmit3.symbols.diff | 5 +- .../importCallExpressionES5CJS.symbols | 7 + .../importCallExpressionES5CJS.symbols.diff | 38 +- .../importCallExpressionES6CJS.symbols | 7 + .../importCallExpressionES6CJS.symbols.diff | 38 +- .../importCallExpressionErrorInES2015.symbols | 4 + ...rtCallExpressionErrorInES2015.symbols.diff | 19 +- .../importCallExpressionInCJS1.symbols | 5 + .../importCallExpressionInCJS1.symbols.diff | 26 +- .../importCallExpressionInCJS2.symbols | 2 + .../importCallExpressionInCJS2.symbols.diff | 15 - .../importCallExpressionInCJS3.symbols | 1 + .../importCallExpressionInCJS3.symbols.diff | 7 +- .../importCallExpressionInCJS4.symbols | 1 + .../importCallExpressionInCJS4.symbols.diff | 10 +- .../importCallExpressionInCJS5.symbols | 6 + .../importCallExpressionInCJS5.symbols.diff | 28 +- ...ortCallExpressionInExportEqualsCJS.symbols | 1 + ...llExpressionInExportEqualsCJS.symbols.diff | 9 - ...portCallExpressionInScriptContext1.symbols | 1 + ...allExpressionInScriptContext1.symbols.diff | 10 - ...portCallExpressionInScriptContext2.symbols | 1 + ...allExpressionInScriptContext2.symbols.diff | 10 - .../importCallExpressionNestedCJS.symbols | 1 + ...importCallExpressionNestedCJS.symbols.diff | 9 - .../importCallExpressionNestedCJS2.symbols | 1 + ...mportCallExpressionNestedCJS2.symbols.diff | 9 - .../importCallExpressionNestedES2015.symbols | 1 + ...ortCallExpressionNestedES2015.symbols.diff | 9 - .../importCallExpressionNestedES20152.symbols | 1 + ...rtCallExpressionNestedES20152.symbols.diff | 9 - .../importCallExpressionNestedES2020.symbols | 1 + ...ortCallExpressionNestedES2020.symbols.diff | 9 - .../importCallExpressionNestedES20202.symbols | 1 + ...rtCallExpressionNestedES20202.symbols.diff | 9 - ...allExpressionNoModuleKindSpecified.symbols | 3 + ...pressionNoModuleKindSpecified.symbols.diff | 14 +- ...portCallExpressionWithTypeArgument.symbols | 2 + ...allExpressionWithTypeArgument.symbols.diff | 11 - .../intersectionsAndEmptyObjects.symbols | 1 + .../intersectionsAndEmptyObjects.symbols.diff | 8 - ...portsSpecifierGenerationConditions.symbols | 1 + ...SpecifierGenerationConditions.symbols.diff | 10 - .../moduleExportAliasImported.symbols | 2 +- .../moduleExportAliasImported.symbols.diff | 5 +- ...llowJsDynamicImport(module=node16).symbols | 2 + ...sDynamicImport(module=node16).symbols.diff | 18 - ...llowJsDynamicImport(module=node18).symbols | 2 + ...sDynamicImport(module=node18).symbols.diff | 18 - ...owJsDynamicImport(module=nodenext).symbols | 2 + ...ynamicImport(module=nodenext).symbols.diff | 18 - ...nchronousCallErrors(module=node16).symbols | 4 + ...nousCallErrors(module=node16).symbols.diff | 6 +- ...nchronousCallErrors(module=node18).symbols | 4 + ...nousCallErrors(module=node18).symbols.diff | 6 +- ...hronousCallErrors(module=nodenext).symbols | 4 + ...usCallErrors(module=nodenext).symbols.diff | 6 +- ...tWithPackageExports(module=node18).symbols | 18 + ...PackageExports(module=node18).symbols.diff | 88 -- ...ithPackageExports(module=nodenext).symbols | 18 + ...ckageExports(module=nodenext).symbols.diff | 88 -- ...odulesDynamicImport(module=node16).symbols | 2 + ...sDynamicImport(module=node16).symbols.diff | 18 - ...odulesDynamicImport(module=node18).symbols | 2 + ...sDynamicImport(module=node18).symbols.diff | 18 - ...ulesDynamicImport(module=nodenext).symbols | 2 + ...ynamicImport(module=nodenext).symbols.diff | 18 - ...SpecifierResolution(module=node16).symbols | 1 + ...fierResolution(module=node16).symbols.diff | 10 - ...SpecifierResolution(module=node18).symbols | 1 + ...fierResolution(module=node18).symbols.diff | 10 - ...ecifierResolution(module=nodenext).symbols | 1 + ...erResolution(module=nodenext).symbols.diff | 10 - ...ulesExportsSourceTs(module=node16).symbols | 1 + ...xportsSourceTs(module=node16).symbols.diff | 10 - ...ulesExportsSourceTs(module=node18).symbols | 1 + ...xportsSourceTs(module=node18).symbols.diff | 10 - ...esExportsSourceTs(module=nodenext).symbols | 1 + ...ortsSourceTs(module=nodenext).symbols.diff | 10 - ...enerationConditions(module=node16).symbols | 1 + ...tionConditions(module=node16).symbols.diff | 10 - ...enerationConditions(module=node18).symbols | 1 + ...tionConditions(module=node18).symbols.diff | 10 - ...erationConditions(module=nodenext).symbols | 1 + ...onConditions(module=nodenext).symbols.diff | 10 - ...GenerationDirectory(module=node16).symbols | 1 + ...ationDirectory(module=node16).symbols.diff | 10 - ...GenerationDirectory(module=node18).symbols | 1 + ...ationDirectory(module=node18).symbols.diff | 10 - ...nerationDirectory(module=nodenext).symbols | 1 + ...ionDirectory(module=nodenext).symbols.diff | 10 - ...erGenerationPattern(module=node16).symbols | 1 + ...erationPattern(module=node16).symbols.diff | 10 - ...erGenerationPattern(module=node18).symbols | 1 + ...erationPattern(module=node18).symbols.diff | 10 - ...GenerationPattern(module=nodenext).symbols | 1 + ...ationPattern(module=nodenext).symbols.diff | 10 - ...lesImportAssertions(module=node16).symbols | 1 + ...portAssertions(module=node16).symbols.diff | 9 - ...lesImportAssertions(module=node18).symbols | 1 + ...portAssertions(module=node18).symbols.diff | 9 - ...sImportAssertions(module=nodenext).symbols | 1 + ...rtAssertions(module=nodenext).symbols.diff | 9 - ...lesImportAttributes(module=node16).symbols | 1 + ...portAttributes(module=node16).symbols.diff | 9 - ...lesImportAttributes(module=node18).symbols | 1 + ...portAttributes(module=node18).symbols.diff | 9 - ...sImportAttributes(module=nodenext).symbols | 1 + ...rtAttributes(module=nodenext).symbols.diff | 9 - ...clarationEmitErrors(module=node16).symbols | 3 + ...tionEmitErrors(module=node16).symbols.diff | 26 - ...clarationEmitErrors(module=node18).symbols | 3 + ...tionEmitErrors(module=node18).symbols.diff | 26 - ...arationEmitErrors(module=nodenext).symbols | 3 + ...onEmitErrors(module=nodenext).symbols.diff | 26 - ...larationEmitErrors1(module=node16).symbols | 3 + ...ionEmitErrors1(module=node16).symbols.diff | 26 - ...larationEmitErrors1(module=node18).symbols | 3 + ...ionEmitErrors1(module=node18).symbols.diff | 26 - ...rationEmitErrors1(module=nodenext).symbols | 3 + ...nEmitErrors1(module=nodenext).symbols.diff | 26 - ...nchronousCallErrors(module=node16).symbols | 4 + ...nousCallErrors(module=node16).symbols.diff | 6 +- ...nchronousCallErrors(module=node18).symbols | 4 + ...nousCallErrors(module=node18).symbols.diff | 6 +- ...hronousCallErrors(module=nodenext).symbols | 4 + ...usCallErrors(module=nodenext).symbols.diff | 6 +- ...erbatimModuleSyntaxRestrictionsCJS.symbols | 2 + ...imModuleSyntaxRestrictionsCJS.symbols.diff | 6 +- ...-transitive-module-with-isolatedModules.js | 623 +++++++++++ .../inferred-type-from-transitive-module.js | 625 +++++++++++ ...hange-in-signature-with-isolatedModules.js | 998 ++++++++++++++++++ 201 files changed, 2620 insertions(+), 1552 deletions(-) delete mode 100644 testdata/baselines/reference/submodule/compiler/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/dynamicImportsDeclaration.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=esnext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=preserve).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/parseAssertEntriesError.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/compiler/parseImportAttributesError.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/allowsImportingTsExtension.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importAssertion1(module=es2015).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importAssertion1(module=esnext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importAttributes1(module=es2015).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importAttributes1(module=esnext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importAttributes7.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit2.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2015.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20152.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2020.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20202.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols.diff delete mode 100644 testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols.diff create mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js create mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js create mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js diff --git a/internal/checker/checker.go b/internal/checker/checker.go index 5b21158429..91ab33f1ea 100644 --- a/internal/checker/checker.go +++ b/internal/checker/checker.go @@ -30272,7 +30272,7 @@ func (c *Checker) getSymbolAtLocation(node *ast.Node, ignoreErrors bool) *ast.Sy // 4). type A = import("./f/*gotToDefinitionHere*/oo") if (ast.IsExternalModuleImportEqualsDeclaration(grandParent) && ast.GetExternalModuleImportEqualsDeclarationExpression(grandParent) == node) || ((parent.Kind == ast.KindImportDeclaration || parent.Kind == ast.KindJSImportDeclaration || parent.Kind == ast.KindExportDeclaration) && ast.GetExternalModuleName(parent) == node) || - ast.IsVariableDeclarationInitializedToRequire(grandParent) || + ast.IsVariableDeclarationInitializedToRequire(grandParent) || ast.IsImportCall(parent) || (ast.IsLiteralTypeNode(parent) && ast.IsLiteralImportTypeNode(grandParent) && grandParent.AsImportTypeNode().Argument == parent) { return c.resolveExternalModuleName(node, node, ignoreErrors) } diff --git a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport1.baseline.jsonc index 0aa126e365..785b36a333 100644 --- a/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport1.baseline.jsonc +++ b/testdata/baselines/reference/fourslash/goToDef/GoToDefinitionDynamicImport1.baseline.jsonc @@ -1,9 +1,9 @@ // === goToDefinition === // === /foo.ts === -// export function foo() { return "foo"; } +// [|export function foo() { return "foo"; } // import("./f/*GO TO DEFINITION*/oo") -// var x = import("./foo") +// var x = import("./foo")|] @@ -11,6 +11,6 @@ // === goToDefinition === // === /foo.ts === -// export function foo() { return "foo"; } +// [|export function foo() { return "foo"; } // import("./foo") -// var x = import("./fo/*GO TO DEFINITION*/o") +// var x = import("./fo/*GO TO DEFINITION*/o")|] diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols b/testdata/baselines/reference/submodule/compiler/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols index 50ca68bc71..027a950cd3 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols @@ -8,6 +8,7 @@ export function a() {} export const x = add(import("./sub")); >x : Symbol(x, Decl(index.ts, 0, 12)) >add : Symbol(add, Decl(index.ts, 1, 27)) +>"./sub" : Symbol("sub", Decl(sub.ts, 0, 0)) export * as Q from "./sub"; >Q : Symbol(Q, Decl(index.ts, 1, 6)) diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols.diff deleted file mode 100644 index 685b690a6f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols -+++ new.declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols -@@= skipped -7, +7 lines =@@ - export const x = add(import("./sub")); - >x : Symbol(x, Decl(index.ts, 0, 12)) - >add : Symbol(add, Decl(index.ts, 1, 27)) -->"./sub" : Symbol("sub", Decl(sub.ts, 0, 0)) - - export * as Q from "./sub"; - >Q : Symbol(Q, Decl(index.ts, 1, 6)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.symbols b/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.symbols index 7b9d2c5f90..1643b28fbe 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.symbols +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.symbols @@ -28,6 +28,7 @@ export default (suit: Suit, rank: Rank) => ({suit, rank}); export let lazyCard = () => import('./Card').then(a => a.default); >lazyCard : Symbol(lazyCard, Decl(index.ts, 0, 10)) >import('./Card').then : Symbol(then, Decl(lib.es5.d.ts, --, --)) +>'./Card' : Symbol("Card", Decl(Card.ts, 0, 0)) >then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >a : Symbol(a, Decl(index.ts, 0, 50)) >a.default : Symbol(default, Decl(Card.ts, 0, 37)) diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.symbols.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.symbols.diff index 070eda9933..48c64db78d 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.symbols.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitExportAliasVisibiilityMarking.symbols.diff @@ -5,9 +5,9 @@ export let lazyCard = () => import('./Card').then(a => a.default); >lazyCard : Symbol(lazyCard, Decl(index.ts, 0, 10)) ->import('./Card').then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) -->'./Card' : Symbol("Card", Decl(Card.ts, 0, 0)) -->then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>import('./Card').then : Symbol(then, Decl(lib.es5.d.ts, --, --)) + >'./Card' : Symbol("Card", Decl(Card.ts, 0, 0)) +->then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >a : Symbol(a, Decl(index.ts, 0, 50)) >a.default : Symbol(default, Decl(Card.ts, 0, 37)) diff --git a/testdata/baselines/reference/submodule/compiler/dynamicImportsDeclaration.symbols b/testdata/baselines/reference/submodule/compiler/dynamicImportsDeclaration.symbols index a4bdaec0ed..6c9878c3b1 100644 --- a/testdata/baselines/reference/submodule/compiler/dynamicImportsDeclaration.symbols +++ b/testdata/baselines/reference/submodule/compiler/dynamicImportsDeclaration.symbols @@ -24,9 +24,14 @@ export const mod = await (async () => { case 0: return await import("./case0.js"); +>"./case0.js" : Symbol("/case0", Decl(case0.ts, 0, 0)) + case 1: return await import("./case1.js"); +>"./case1.js" : Symbol("/case1", Decl(case1.ts, 0, 0)) + default: return await import("./caseFallback.js"); +>"./caseFallback.js" : Symbol("/caseFallback", Decl(caseFallback.ts, 0, 0)) } })(); diff --git a/testdata/baselines/reference/submodule/compiler/dynamicImportsDeclaration.symbols.diff b/testdata/baselines/reference/submodule/compiler/dynamicImportsDeclaration.symbols.diff deleted file mode 100644 index c8554d35e2..0000000000 --- a/testdata/baselines/reference/submodule/compiler/dynamicImportsDeclaration.symbols.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.dynamicImportsDeclaration.symbols -+++ new.dynamicImportsDeclaration.symbols -@@= skipped -23, +23 lines =@@ - - case 0: - return await import("./case0.js"); -->"./case0.js" : Symbol("/case0", Decl(case0.ts, 0, 0)) -- - case 1: - return await import("./case1.js"); -->"./case1.js" : Symbol("/case1", Decl(case1.ts, 0, 0)) -- - default: - return await import("./caseFallback.js"); -->"./caseFallback.js" : Symbol("/caseFallback", Decl(caseFallback.ts, 0, 0)) - } - })(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.symbols b/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.symbols index 8603e07b3d..772be4d39f 100644 --- a/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.symbols +++ b/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.symbols @@ -8,4 +8,5 @@ export = x; >x : Symbol(x, Decl(a.ts, 0, 10)) import("./a"); +>"./a" : Symbol("/a", Decl(a.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.symbols.diff b/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.symbols.diff deleted file mode 100644 index 3b5843d7c0..0000000000 --- a/testdata/baselines/reference/submodule/compiler/errorForConflictingExportEqualsValue.symbols.diff +++ /dev/null @@ -1,7 +0,0 @@ ---- old.errorForConflictingExportEqualsValue.symbols -+++ new.errorForConflictingExportEqualsValue.symbols -@@= skipped -7, +7 lines =@@ - >x : Symbol(x, Decl(a.ts, 0, 10)) - - import("./a"); -->"./a" : Symbol("/a", Decl(a.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/compiler/esModuleInteropImportCall.symbols b/testdata/baselines/reference/submodule/compiler/esModuleInteropImportCall.symbols index de78445b55..7831aea378 100644 --- a/testdata/baselines/reference/submodule/compiler/esModuleInteropImportCall.symbols +++ b/testdata/baselines/reference/submodule/compiler/esModuleInteropImportCall.symbols @@ -13,6 +13,7 @@ export = foo; === index.ts === import("./foo").then(f => { >import("./foo").then : Symbol(then, Decl(lib.es5.d.ts, --, --)) +>"./foo" : Symbol("foo", Decl(foo.d.ts, 0, 0)) >then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >f : Symbol(f, Decl(index.ts, 0, 21)) diff --git a/testdata/baselines/reference/submodule/compiler/esModuleInteropImportCall.symbols.diff b/testdata/baselines/reference/submodule/compiler/esModuleInteropImportCall.symbols.diff index cffe53062b..002dfbc7e4 100644 --- a/testdata/baselines/reference/submodule/compiler/esModuleInteropImportCall.symbols.diff +++ b/testdata/baselines/reference/submodule/compiler/esModuleInteropImportCall.symbols.diff @@ -5,9 +5,9 @@ === index.ts === import("./foo").then(f => { ->import("./foo").then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) -->"./foo" : Symbol("foo", Decl(foo.d.ts, 0, 0)) -->then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>import("./foo").then : Symbol(then, Decl(lib.es5.d.ts, --, --)) + >"./foo" : Symbol("foo", Decl(foo.d.ts, 0, 0)) +->then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >f : Symbol(f, Decl(index.ts, 0, 21)) diff --git a/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=esnext).symbols b/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=esnext).symbols index 240b767551..a9c981cfa7 100644 --- a/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=esnext).symbols +++ b/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=esnext).symbols @@ -17,6 +17,7 @@ mdast.toString(); const mdast2 = await import('mdast-util-to-string'); >mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) +>'mdast-util-to-string' : Symbol("/node_modules/mdast-util-to-string/index", Decl(index.d.ts, 0, 0)) mdast2.toString(); >mdast2.toString : Symbol(toString, Decl(index.d.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=esnext).symbols.diff b/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=esnext).symbols.diff deleted file mode 100644 index 478c6e5db9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=esnext).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.esmNoSynthesizedDefault(module=esnext).symbols -+++ new.esmNoSynthesizedDefault(module=esnext).symbols -@@= skipped -16, +16 lines =@@ - - const mdast2 = await import('mdast-util-to-string'); - >mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) -->'mdast-util-to-string' : Symbol("/node_modules/mdast-util-to-string/index", Decl(index.d.ts, 0, 0)) - - mdast2.toString(); - >mdast2.toString : Symbol(toString, Decl(index.d.ts, 0, 0)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=preserve).symbols b/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=preserve).symbols index 240b767551..a9c981cfa7 100644 --- a/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=preserve).symbols +++ b/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=preserve).symbols @@ -17,6 +17,7 @@ mdast.toString(); const mdast2 = await import('mdast-util-to-string'); >mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) +>'mdast-util-to-string' : Symbol("/node_modules/mdast-util-to-string/index", Decl(index.d.ts, 0, 0)) mdast2.toString(); >mdast2.toString : Symbol(toString, Decl(index.d.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=preserve).symbols.diff b/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=preserve).symbols.diff deleted file mode 100644 index 09ce34668c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/esmNoSynthesizedDefault(module=preserve).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.esmNoSynthesizedDefault(module=preserve).symbols -+++ new.esmNoSynthesizedDefault(module=preserve).symbols -@@= skipped -16, +16 lines =@@ - - const mdast2 = await import('mdast-util-to-string'); - >mdast2 : Symbol(mdast2, Decl(index.ts, 4, 5)) -->'mdast-util-to-string' : Symbol("/node_modules/mdast-util-to-string/index", Decl(index.d.ts, 0, 0)) - - mdast2.toString(); - >mdast2.toString : Symbol(toString, Decl(index.d.ts, 0, 0)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.symbols b/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.symbols index 1580972f31..4863eb896c 100644 --- a/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.symbols +++ b/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.symbols @@ -4,6 +4,7 @@ export async function foo({ foo = await import("./bar") }) { >foo : Symbol(foo, Decl(bar.ts, 0, 0)) >foo : Symbol(foo, Decl(bar.ts, 0, 27)) +>"./bar" : Symbol("bar", Decl(bar.ts, 0, 0)) } export function* foo2({ foo = yield "a" }) { diff --git a/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.symbols.diff b/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.symbols.diff deleted file mode 100644 index fdfd9619c4..0000000000 --- a/testdata/baselines/reference/submodule/compiler/expressionsForbiddenInParameterInitializers.symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.expressionsForbiddenInParameterInitializers.symbols -+++ new.expressionsForbiddenInParameterInitializers.symbols -@@= skipped -3, +3 lines =@@ - export async function foo({ foo = await import("./bar") }) { - >foo : Symbol(foo, Decl(bar.ts, 0, 0)) - >foo : Symbol(foo, Decl(bar.ts, 0, 27)) -->"./bar" : Symbol("bar", Decl(bar.ts, 0, 0)) - } - - export function* foo2({ foo = yield "a" }) { \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols index f67f9991b9..2231926bdd 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols +++ b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols @@ -3,6 +3,7 @@ === /a.ts === const foo = import("./b"); >foo : Symbol(foo, Decl(a.ts, 0, 5)) +>"./b" : Symbol("/b", Decl(b.js, 0, 0)) === /b.js === diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols.diff b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols.diff deleted file mode 100644 index 095b3b09b9..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2015).symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.moduleNoneDynamicImport(target=es2015).symbols -+++ new.moduleNoneDynamicImport(target=es2015).symbols -@@= skipped -2, +2 lines =@@ - === /a.ts === - const foo = import("./b"); - >foo : Symbol(foo, Decl(a.ts, 0, 5)) -->"./b" : Symbol("/b", Decl(b.js, 0, 0)) - - === /b.js === diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols index f67f9991b9..2231926bdd 100644 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols +++ b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols @@ -3,6 +3,7 @@ === /a.ts === const foo = import("./b"); >foo : Symbol(foo, Decl(a.ts, 0, 5)) +>"./b" : Symbol("/b", Decl(b.js, 0, 0)) === /b.js === diff --git a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols.diff b/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols.diff deleted file mode 100644 index 6e03bb957c..0000000000 --- a/testdata/baselines/reference/submodule/compiler/moduleNoneDynamicImport(target=es2020).symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.moduleNoneDynamicImport(target=es2020).symbols -+++ new.moduleNoneDynamicImport(target=es2020).symbols -@@= skipped -2, +2 lines =@@ - === /a.ts === - const foo = import("./b"); - >foo : Symbol(foo, Decl(a.ts, 0, 5)) -->"./b" : Symbol("/b", Decl(b.js, 0, 0)) - - === /b.js === diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve4.symbols b/testdata/baselines/reference/submodule/compiler/modulePreserve4.symbols index b5da7a2282..3d66d5c165 100644 --- a/testdata/baselines/reference/submodule/compiler/modulePreserve4.symbols +++ b/testdata/baselines/reference/submodule/compiler/modulePreserve4.symbols @@ -53,6 +53,7 @@ const a2 = require("./a"); // Error in TS const a3 = await import("./a"); // { x: 0 } >a3 : Symbol(a3, Decl(main1.ts, 3, 5)) +>"./a" : Symbol("/a", Decl(a.js, 0, 0)) a3.x; >a3.x : Symbol(x, Decl(a.js, 0, 12)) @@ -72,6 +73,7 @@ b2.default; const b3 = await import("./b"); // { default: 0 } >b3 : Symbol(b3, Decl(main1.ts, 9, 5)) +>"./b" : Symbol("/b", Decl(b.ts, 0, 0)) b3.default; >b3.default : Symbol(default, Decl(b.ts, 0, 0)) @@ -103,6 +105,7 @@ d2.default(); // Error const d3 = await import("./d"); // { default: [Function: default] } >d3 : Symbol(d3, Decl(main1.ts, 19, 5)) +>"./d" : Symbol("/d", Decl(d.ts, 0, 0)) d3.default(); >d3.default : Symbol(default) diff --git a/testdata/baselines/reference/submodule/compiler/modulePreserve4.symbols.diff b/testdata/baselines/reference/submodule/compiler/modulePreserve4.symbols.diff index 8d34095581..eafeaadf6e 100644 --- a/testdata/baselines/reference/submodule/compiler/modulePreserve4.symbols.diff +++ b/testdata/baselines/reference/submodule/compiler/modulePreserve4.symbols.diff @@ -26,10 +26,11 @@ const a3 = await import("./a"); // { x: 0 } >a3 : Symbol(a3, Decl(main1.ts, 3, 5)) ->"./a" : Symbol(a1, Decl(a.js, 0, 0)) ++>"./a" : Symbol("/a", Decl(a.js, 0, 0)) a3.x; >a3.x : Symbol(x, Decl(a.js, 0, 12)) -@@= skipped -14, +13 lines =@@ +@@= skipped -14, +14 lines =@@ >b2 : Symbol(b2, Decl(main1.ts, 6, 21)) b2.default; @@ -42,6 +43,7 @@ const b3 = await import("./b"); // { default: 0 } >b3 : Symbol(b3, Decl(main1.ts, 9, 5)) ->"./b" : Symbol(b2, Decl(b.ts, 0, 0)) ++>"./b" : Symbol("/b", Decl(b.ts, 0, 0)) b3.default; ->b3.default : Symbol(b1, Decl(b.ts, 0, 0)) @@ -52,15 +54,7 @@ import c1 from "./c"; // { default: [Function: default] } >c1 : Symbol(c1, Decl(main1.ts, 12, 6)) -@@= skipped -38, +37 lines =@@ - - const d3 = await import("./d"); // { default: [Function: default] } - >d3 : Symbol(d3, Decl(main1.ts, 19, 5)) -->"./d" : Symbol("/d", Decl(d.ts, 0, 0)) - - d3.default(); - >d3.default : Symbol(default) -@@= skipped -20, +19 lines =@@ +@@= skipped -58, +58 lines =@@ >f2 : Symbol(f2, Decl(main1.ts, 24, 25)) f2.default; diff --git a/testdata/baselines/reference/submodule/compiler/parseAssertEntriesError.symbols b/testdata/baselines/reference/submodule/compiler/parseAssertEntriesError.symbols index bef3c1ef2d..ad11b82ca7 100644 --- a/testdata/baselines/reference/submodule/compiler/parseAssertEntriesError.symbols +++ b/testdata/baselines/reference/submodule/compiler/parseAssertEntriesError.symbols @@ -6,6 +6,7 @@ export type LocalInterface = & import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >assert : Symbol(assert, Decl(index.ts, 2, 21)) >1234 : Symbol(1234, Decl(index.ts, 2, 31)) >"resolution-mode" : Symbol("resolution-mode", Decl(index.ts, 2, 36)) diff --git a/testdata/baselines/reference/submodule/compiler/parseAssertEntriesError.symbols.diff b/testdata/baselines/reference/submodule/compiler/parseAssertEntriesError.symbols.diff deleted file mode 100644 index 83d3c74a8f..0000000000 --- a/testdata/baselines/reference/submodule/compiler/parseAssertEntriesError.symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.parseAssertEntriesError.symbols -+++ new.parseAssertEntriesError.symbols -@@= skipped -5, +5 lines =@@ - - & import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface - & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >assert : Symbol(assert, Decl(index.ts, 2, 21)) - >1234 : Symbol(1234, Decl(index.ts, 2, 31)) - >"resolution-mode" : Symbol("resolution-mode", Decl(index.ts, 2, 36)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/parseImportAttributesError.symbols b/testdata/baselines/reference/submodule/compiler/parseImportAttributesError.symbols index d6a5e807b3..c5717d367b 100644 --- a/testdata/baselines/reference/submodule/compiler/parseImportAttributesError.symbols +++ b/testdata/baselines/reference/submodule/compiler/parseImportAttributesError.symbols @@ -6,6 +6,7 @@ export type LocalInterface = & import("pkg", { with: {1234, "resolution-mode": "require"} }).RequireInterface & import("pkg", { with: {1234, "resolution-mode": "import"} }).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >with : Symbol(with, Decl(index.ts, 2, 21)) >1234 : Symbol(1234, Decl(index.ts, 2, 29)) >"resolution-mode" : Symbol("resolution-mode", Decl(index.ts, 2, 34)) diff --git a/testdata/baselines/reference/submodule/compiler/parseImportAttributesError.symbols.diff b/testdata/baselines/reference/submodule/compiler/parseImportAttributesError.symbols.diff deleted file mode 100644 index 0074078eda..0000000000 --- a/testdata/baselines/reference/submodule/compiler/parseImportAttributesError.symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.parseImportAttributesError.symbols -+++ new.parseImportAttributesError.symbols -@@= skipped -5, +5 lines =@@ - - & import("pkg", { with: {1234, "resolution-mode": "require"} }).RequireInterface - & import("pkg", { with: {1234, "resolution-mode": "import"} }).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >with : Symbol(with, Decl(index.ts, 2, 21)) - >1234 : Symbol(1234, Decl(index.ts, 2, 29)) - >"resolution-mode" : Symbol("resolution-mode", Decl(index.ts, 2, 34)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/allowsImportingTsExtension.symbols b/testdata/baselines/reference/submodule/conformance/allowsImportingTsExtension.symbols index 1e346f48f3..a08e00fcf5 100644 --- a/testdata/baselines/reference/submodule/conformance/allowsImportingTsExtension.symbols +++ b/testdata/baselines/reference/submodule/conformance/allowsImportingTsExtension.symbols @@ -23,6 +23,7 @@ type __A = import("./a.ts").A; // ok const aPromise = import("./a.ts"); // error >aPromise : Symbol(aPromise, Decl(b.ts, 4, 5)) +>"./a.ts" : Symbol("a", Decl(a.ts, 0, 0)) === c.ts === import type { A } from "./a.d.ts"; // ok @@ -39,4 +40,5 @@ type __A = import("./a.d.ts").A; // ok const aPromise = import("./a.d.ts"); // error >aPromise : Symbol(aPromise, Decl(c.ts, 4, 5)) +>"./a.d.ts" : Symbol("a", Decl(a.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/allowsImportingTsExtension.symbols.diff b/testdata/baselines/reference/submodule/conformance/allowsImportingTsExtension.symbols.diff deleted file mode 100644 index 3696bbb682..0000000000 --- a/testdata/baselines/reference/submodule/conformance/allowsImportingTsExtension.symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.allowsImportingTsExtension.symbols -+++ new.allowsImportingTsExtension.symbols -@@= skipped -22, +22 lines =@@ - - const aPromise = import("./a.ts"); // error - >aPromise : Symbol(aPromise, Decl(b.ts, 4, 5)) -->"./a.ts" : Symbol("a", Decl(a.ts, 0, 0)) - - === c.ts === - import type { A } from "./a.d.ts"; // ok -@@= skipped -17, +16 lines =@@ - - const aPromise = import("./a.d.ts"); // error - >aPromise : Symbol(aPromise, Decl(c.ts, 4, 5)) -->"./a.d.ts" : Symbol("a", Decl(a.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=esnext).symbols b/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=esnext).symbols index c93b153aff..4babef332c 100644 --- a/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=esnext).symbols +++ b/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=esnext).symbols @@ -33,6 +33,8 @@ declare module "path" { === /mainJs.js === import {} from "./a"; import("./a"); +>"./a" : Symbol("/a", Decl(a.ts, 0, 0)) + const _ = require("./a"); >_ : Symbol(_, Decl(mainJs.js, 2, 5)) >require : Symbol(require, Decl(index.d.ts, 0, 11)) diff --git a/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=esnext).symbols.diff b/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=esnext).symbols.diff index 6b8218de47..00e873ac25 100644 --- a/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=esnext).symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=esnext).symbols.diff @@ -5,7 +5,8 @@ import {} from "./a"; import("./a"); ->"./a" : Symbol(_, Decl(a.ts, 0, 0)) -- ++>"./a" : Symbol("/a", Decl(a.ts, 0, 0)) + const _ = require("./a"); >_ : Symbol(_, Decl(mainJs.js, 2, 5)) >require : Symbol(require, Decl(index.d.ts, 0, 11)) diff --git a/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=preserve).symbols b/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=preserve).symbols index c93b153aff..4babef332c 100644 --- a/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=preserve).symbols +++ b/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=preserve).symbols @@ -33,6 +33,8 @@ declare module "path" { === /mainJs.js === import {} from "./a"; import("./a"); +>"./a" : Symbol("/a", Decl(a.ts, 0, 0)) + const _ = require("./a"); >_ : Symbol(_, Decl(mainJs.js, 2, 5)) >require : Symbol(require, Decl(index.d.ts, 0, 11)) diff --git a/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=preserve).symbols.diff b/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=preserve).symbols.diff index 730aca5528..e7c586ef29 100644 --- a/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=preserve).symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/bundlerSyntaxRestrictions(module=preserve).symbols.diff @@ -5,7 +5,8 @@ import {} from "./a"; import("./a"); ->"./a" : Symbol(_, Decl(a.ts, 0, 0)) -- ++>"./a" : Symbol("/a", Decl(a.ts, 0, 0)) + const _ = require("./a"); >_ : Symbol(_, Decl(mainJs.js, 2, 5)) >require : Symbol(require, Decl(index.d.ts, 0, 11)) diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).symbols b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).symbols index 6cac07e535..99ba5af25e 100644 --- a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).symbols +++ b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).symbols @@ -58,30 +58,36 @@ d; === 3.ts === const a = import('./0') >a : Symbol(a, Decl(3.ts, 0, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const b = import('./0', { assert: { type: "json" } }) >b : Symbol(b, Decl(3.ts, 1, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 1, 25)) >type : Symbol(type, Decl(3.ts, 1, 35)) const c = import('./0', { assert: { type: "json", ttype: "typo" } }) >c : Symbol(c, Decl(3.ts, 2, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 2, 25)) >type : Symbol(type, Decl(3.ts, 2, 35)) >ttype : Symbol(ttype, Decl(3.ts, 2, 49)) const d = import('./0', { assert: {} }) >d : Symbol(d, Decl(3.ts, 3, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 3, 25)) const dd = import('./0', {}) >dd : Symbol(dd, Decl(3.ts, 4, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) declare function foo(): any; >foo : Symbol(foo, Decl(3.ts, 4, 28)) const e = import('./0', foo()) >e : Symbol(e, Decl(3.ts, 6, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >foo : Symbol(foo, Decl(3.ts, 4, 28)) const f = import() @@ -89,9 +95,11 @@ const f = import() const g = import('./0', {}, {}) >g : Symbol(g, Decl(3.ts, 8, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const h = import('./0', { assert: { type: "json" }},) >h : Symbol(h, Decl(3.ts, 9, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 9, 25)) >type : Symbol(type, Decl(3.ts, 9, 35)) diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).symbols.diff b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).symbols.diff deleted file mode 100644 index 0fb9f0d528..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=commonjs).symbols.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.importAssertion1(module=commonjs).symbols -+++ new.importAssertion1(module=commonjs).symbols -@@= skipped -57, +57 lines =@@ - === 3.ts === - const a = import('./0') - >a : Symbol(a, Decl(3.ts, 0, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const b = import('./0', { assert: { type: "json" } }) - >b : Symbol(b, Decl(3.ts, 1, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 1, 25)) - >type : Symbol(type, Decl(3.ts, 1, 35)) - - const c = import('./0', { assert: { type: "json", ttype: "typo" } }) - >c : Symbol(c, Decl(3.ts, 2, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 2, 25)) - >type : Symbol(type, Decl(3.ts, 2, 35)) - >ttype : Symbol(ttype, Decl(3.ts, 2, 49)) - - const d = import('./0', { assert: {} }) - >d : Symbol(d, Decl(3.ts, 3, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 3, 25)) - - const dd = import('./0', {}) - >dd : Symbol(dd, Decl(3.ts, 4, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - declare function foo(): any; - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const e = import('./0', foo()) - >e : Symbol(e, Decl(3.ts, 6, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const f = import() -@@= skipped -37, +31 lines =@@ - - const g = import('./0', {}, {}) - >g : Symbol(g, Decl(3.ts, 8, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const h = import('./0', { assert: { type: "json" }},) - >h : Symbol(h, Decl(3.ts, 9, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 9, 25)) - >type : Symbol(type, Decl(3.ts, 9, 35)) diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=es2015).symbols b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=es2015).symbols index 6cac07e535..99ba5af25e 100644 --- a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=es2015).symbols +++ b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=es2015).symbols @@ -58,30 +58,36 @@ d; === 3.ts === const a = import('./0') >a : Symbol(a, Decl(3.ts, 0, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const b = import('./0', { assert: { type: "json" } }) >b : Symbol(b, Decl(3.ts, 1, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 1, 25)) >type : Symbol(type, Decl(3.ts, 1, 35)) const c = import('./0', { assert: { type: "json", ttype: "typo" } }) >c : Symbol(c, Decl(3.ts, 2, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 2, 25)) >type : Symbol(type, Decl(3.ts, 2, 35)) >ttype : Symbol(ttype, Decl(3.ts, 2, 49)) const d = import('./0', { assert: {} }) >d : Symbol(d, Decl(3.ts, 3, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 3, 25)) const dd = import('./0', {}) >dd : Symbol(dd, Decl(3.ts, 4, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) declare function foo(): any; >foo : Symbol(foo, Decl(3.ts, 4, 28)) const e = import('./0', foo()) >e : Symbol(e, Decl(3.ts, 6, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >foo : Symbol(foo, Decl(3.ts, 4, 28)) const f = import() @@ -89,9 +95,11 @@ const f = import() const g = import('./0', {}, {}) >g : Symbol(g, Decl(3.ts, 8, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const h = import('./0', { assert: { type: "json" }},) >h : Symbol(h, Decl(3.ts, 9, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 9, 25)) >type : Symbol(type, Decl(3.ts, 9, 35)) diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=es2015).symbols.diff b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=es2015).symbols.diff deleted file mode 100644 index 63cb6c8cb1..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=es2015).symbols.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.importAssertion1(module=es2015).symbols -+++ new.importAssertion1(module=es2015).symbols -@@= skipped -57, +57 lines =@@ - === 3.ts === - const a = import('./0') - >a : Symbol(a, Decl(3.ts, 0, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const b = import('./0', { assert: { type: "json" } }) - >b : Symbol(b, Decl(3.ts, 1, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 1, 25)) - >type : Symbol(type, Decl(3.ts, 1, 35)) - - const c = import('./0', { assert: { type: "json", ttype: "typo" } }) - >c : Symbol(c, Decl(3.ts, 2, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 2, 25)) - >type : Symbol(type, Decl(3.ts, 2, 35)) - >ttype : Symbol(ttype, Decl(3.ts, 2, 49)) - - const d = import('./0', { assert: {} }) - >d : Symbol(d, Decl(3.ts, 3, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 3, 25)) - - const dd = import('./0', {}) - >dd : Symbol(dd, Decl(3.ts, 4, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - declare function foo(): any; - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const e = import('./0', foo()) - >e : Symbol(e, Decl(3.ts, 6, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const f = import() -@@= skipped -37, +31 lines =@@ - - const g = import('./0', {}, {}) - >g : Symbol(g, Decl(3.ts, 8, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const h = import('./0', { assert: { type: "json" }},) - >h : Symbol(h, Decl(3.ts, 9, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 9, 25)) - >type : Symbol(type, Decl(3.ts, 9, 35)) diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=esnext).symbols b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=esnext).symbols index 6cac07e535..99ba5af25e 100644 --- a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=esnext).symbols +++ b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=esnext).symbols @@ -58,30 +58,36 @@ d; === 3.ts === const a = import('./0') >a : Symbol(a, Decl(3.ts, 0, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const b = import('./0', { assert: { type: "json" } }) >b : Symbol(b, Decl(3.ts, 1, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 1, 25)) >type : Symbol(type, Decl(3.ts, 1, 35)) const c = import('./0', { assert: { type: "json", ttype: "typo" } }) >c : Symbol(c, Decl(3.ts, 2, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 2, 25)) >type : Symbol(type, Decl(3.ts, 2, 35)) >ttype : Symbol(ttype, Decl(3.ts, 2, 49)) const d = import('./0', { assert: {} }) >d : Symbol(d, Decl(3.ts, 3, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 3, 25)) const dd = import('./0', {}) >dd : Symbol(dd, Decl(3.ts, 4, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) declare function foo(): any; >foo : Symbol(foo, Decl(3.ts, 4, 28)) const e = import('./0', foo()) >e : Symbol(e, Decl(3.ts, 6, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >foo : Symbol(foo, Decl(3.ts, 4, 28)) const f = import() @@ -89,9 +95,11 @@ const f = import() const g = import('./0', {}, {}) >g : Symbol(g, Decl(3.ts, 8, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const h = import('./0', { assert: { type: "json" }},) >h : Symbol(h, Decl(3.ts, 9, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >assert : Symbol(assert, Decl(3.ts, 9, 25)) >type : Symbol(type, Decl(3.ts, 9, 35)) diff --git a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=esnext).symbols.diff b/testdata/baselines/reference/submodule/conformance/importAssertion1(module=esnext).symbols.diff deleted file mode 100644 index 0bf2a31761..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importAssertion1(module=esnext).symbols.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.importAssertion1(module=esnext).symbols -+++ new.importAssertion1(module=esnext).symbols -@@= skipped -57, +57 lines =@@ - === 3.ts === - const a = import('./0') - >a : Symbol(a, Decl(3.ts, 0, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const b = import('./0', { assert: { type: "json" } }) - >b : Symbol(b, Decl(3.ts, 1, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 1, 25)) - >type : Symbol(type, Decl(3.ts, 1, 35)) - - const c = import('./0', { assert: { type: "json", ttype: "typo" } }) - >c : Symbol(c, Decl(3.ts, 2, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 2, 25)) - >type : Symbol(type, Decl(3.ts, 2, 35)) - >ttype : Symbol(ttype, Decl(3.ts, 2, 49)) - - const d = import('./0', { assert: {} }) - >d : Symbol(d, Decl(3.ts, 3, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 3, 25)) - - const dd = import('./0', {}) - >dd : Symbol(dd, Decl(3.ts, 4, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - declare function foo(): any; - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const e = import('./0', foo()) - >e : Symbol(e, Decl(3.ts, 6, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const f = import() -@@= skipped -37, +31 lines =@@ - - const g = import('./0', {}, {}) - >g : Symbol(g, Decl(3.ts, 8, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const h = import('./0', { assert: { type: "json" }},) - >h : Symbol(h, Decl(3.ts, 9, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >assert : Symbol(assert, Decl(3.ts, 9, 25)) - >type : Symbol(type, Decl(3.ts, 9, 35)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).symbols b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).symbols index 4306878a9d..65dc9f6636 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).symbols +++ b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).symbols @@ -58,30 +58,36 @@ d; === 3.ts === const a = import('./0') >a : Symbol(a, Decl(3.ts, 0, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const b = import('./0', { with: { type: "json" } }) >b : Symbol(b, Decl(3.ts, 1, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 1, 25)) >type : Symbol(type, Decl(3.ts, 1, 33)) const c = import('./0', { with: { type: "json", ttype: "typo" } }) >c : Symbol(c, Decl(3.ts, 2, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 2, 25)) >type : Symbol(type, Decl(3.ts, 2, 33)) >ttype : Symbol(ttype, Decl(3.ts, 2, 47)) const d = import('./0', { with: {} }) >d : Symbol(d, Decl(3.ts, 3, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 3, 25)) const dd = import('./0', {}) >dd : Symbol(dd, Decl(3.ts, 4, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) declare function foo(): any; >foo : Symbol(foo, Decl(3.ts, 4, 28)) const e = import('./0', foo()) >e : Symbol(e, Decl(3.ts, 6, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >foo : Symbol(foo, Decl(3.ts, 4, 28)) const f = import() @@ -89,9 +95,11 @@ const f = import() const g = import('./0', {}, {}) >g : Symbol(g, Decl(3.ts, 8, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const h = import('./0', { with: { type: "json" }},) >h : Symbol(h, Decl(3.ts, 9, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 9, 25)) >type : Symbol(type, Decl(3.ts, 9, 33)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).symbols.diff b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).symbols.diff deleted file mode 100644 index 16da590794..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=commonjs).symbols.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.importAttributes1(module=commonjs).symbols -+++ new.importAttributes1(module=commonjs).symbols -@@= skipped -57, +57 lines =@@ - === 3.ts === - const a = import('./0') - >a : Symbol(a, Decl(3.ts, 0, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const b = import('./0', { with: { type: "json" } }) - >b : Symbol(b, Decl(3.ts, 1, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 1, 25)) - >type : Symbol(type, Decl(3.ts, 1, 33)) - - const c = import('./0', { with: { type: "json", ttype: "typo" } }) - >c : Symbol(c, Decl(3.ts, 2, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 2, 25)) - >type : Symbol(type, Decl(3.ts, 2, 33)) - >ttype : Symbol(ttype, Decl(3.ts, 2, 47)) - - const d = import('./0', { with: {} }) - >d : Symbol(d, Decl(3.ts, 3, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 3, 25)) - - const dd = import('./0', {}) - >dd : Symbol(dd, Decl(3.ts, 4, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - declare function foo(): any; - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const e = import('./0', foo()) - >e : Symbol(e, Decl(3.ts, 6, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const f = import() -@@= skipped -37, +31 lines =@@ - - const g = import('./0', {}, {}) - >g : Symbol(g, Decl(3.ts, 8, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const h = import('./0', { with: { type: "json" }},) - >h : Symbol(h, Decl(3.ts, 9, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 9, 25)) - >type : Symbol(type, Decl(3.ts, 9, 33)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=es2015).symbols b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=es2015).symbols index 4306878a9d..65dc9f6636 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=es2015).symbols +++ b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=es2015).symbols @@ -58,30 +58,36 @@ d; === 3.ts === const a = import('./0') >a : Symbol(a, Decl(3.ts, 0, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const b = import('./0', { with: { type: "json" } }) >b : Symbol(b, Decl(3.ts, 1, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 1, 25)) >type : Symbol(type, Decl(3.ts, 1, 33)) const c = import('./0', { with: { type: "json", ttype: "typo" } }) >c : Symbol(c, Decl(3.ts, 2, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 2, 25)) >type : Symbol(type, Decl(3.ts, 2, 33)) >ttype : Symbol(ttype, Decl(3.ts, 2, 47)) const d = import('./0', { with: {} }) >d : Symbol(d, Decl(3.ts, 3, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 3, 25)) const dd = import('./0', {}) >dd : Symbol(dd, Decl(3.ts, 4, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) declare function foo(): any; >foo : Symbol(foo, Decl(3.ts, 4, 28)) const e = import('./0', foo()) >e : Symbol(e, Decl(3.ts, 6, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >foo : Symbol(foo, Decl(3.ts, 4, 28)) const f = import() @@ -89,9 +95,11 @@ const f = import() const g = import('./0', {}, {}) >g : Symbol(g, Decl(3.ts, 8, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const h = import('./0', { with: { type: "json" }},) >h : Symbol(h, Decl(3.ts, 9, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 9, 25)) >type : Symbol(type, Decl(3.ts, 9, 33)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=es2015).symbols.diff b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=es2015).symbols.diff deleted file mode 100644 index 6925a65800..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=es2015).symbols.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.importAttributes1(module=es2015).symbols -+++ new.importAttributes1(module=es2015).symbols -@@= skipped -57, +57 lines =@@ - === 3.ts === - const a = import('./0') - >a : Symbol(a, Decl(3.ts, 0, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const b = import('./0', { with: { type: "json" } }) - >b : Symbol(b, Decl(3.ts, 1, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 1, 25)) - >type : Symbol(type, Decl(3.ts, 1, 33)) - - const c = import('./0', { with: { type: "json", ttype: "typo" } }) - >c : Symbol(c, Decl(3.ts, 2, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 2, 25)) - >type : Symbol(type, Decl(3.ts, 2, 33)) - >ttype : Symbol(ttype, Decl(3.ts, 2, 47)) - - const d = import('./0', { with: {} }) - >d : Symbol(d, Decl(3.ts, 3, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 3, 25)) - - const dd = import('./0', {}) - >dd : Symbol(dd, Decl(3.ts, 4, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - declare function foo(): any; - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const e = import('./0', foo()) - >e : Symbol(e, Decl(3.ts, 6, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const f = import() -@@= skipped -37, +31 lines =@@ - - const g = import('./0', {}, {}) - >g : Symbol(g, Decl(3.ts, 8, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const h = import('./0', { with: { type: "json" }},) - >h : Symbol(h, Decl(3.ts, 9, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 9, 25)) - >type : Symbol(type, Decl(3.ts, 9, 33)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=esnext).symbols b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=esnext).symbols index 4306878a9d..65dc9f6636 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=esnext).symbols +++ b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=esnext).symbols @@ -58,30 +58,36 @@ d; === 3.ts === const a = import('./0') >a : Symbol(a, Decl(3.ts, 0, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const b = import('./0', { with: { type: "json" } }) >b : Symbol(b, Decl(3.ts, 1, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 1, 25)) >type : Symbol(type, Decl(3.ts, 1, 33)) const c = import('./0', { with: { type: "json", ttype: "typo" } }) >c : Symbol(c, Decl(3.ts, 2, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 2, 25)) >type : Symbol(type, Decl(3.ts, 2, 33)) >ttype : Symbol(ttype, Decl(3.ts, 2, 47)) const d = import('./0', { with: {} }) >d : Symbol(d, Decl(3.ts, 3, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 3, 25)) const dd = import('./0', {}) >dd : Symbol(dd, Decl(3.ts, 4, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) declare function foo(): any; >foo : Symbol(foo, Decl(3.ts, 4, 28)) const e = import('./0', foo()) >e : Symbol(e, Decl(3.ts, 6, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >foo : Symbol(foo, Decl(3.ts, 4, 28)) const f = import() @@ -89,9 +95,11 @@ const f = import() const g = import('./0', {}, {}) >g : Symbol(g, Decl(3.ts, 8, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) const h = import('./0', { with: { type: "json" }},) >h : Symbol(h, Decl(3.ts, 9, 5)) +>'./0' : Symbol("0", Decl(0.ts, 0, 0)) >with : Symbol(with, Decl(3.ts, 9, 25)) >type : Symbol(type, Decl(3.ts, 9, 33)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=esnext).symbols.diff b/testdata/baselines/reference/submodule/conformance/importAttributes1(module=esnext).symbols.diff deleted file mode 100644 index cbc1670bd3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importAttributes1(module=esnext).symbols.diff +++ /dev/null @@ -1,50 +0,0 @@ ---- old.importAttributes1(module=esnext).symbols -+++ new.importAttributes1(module=esnext).symbols -@@= skipped -57, +57 lines =@@ - === 3.ts === - const a = import('./0') - >a : Symbol(a, Decl(3.ts, 0, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const b = import('./0', { with: { type: "json" } }) - >b : Symbol(b, Decl(3.ts, 1, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 1, 25)) - >type : Symbol(type, Decl(3.ts, 1, 33)) - - const c = import('./0', { with: { type: "json", ttype: "typo" } }) - >c : Symbol(c, Decl(3.ts, 2, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 2, 25)) - >type : Symbol(type, Decl(3.ts, 2, 33)) - >ttype : Symbol(ttype, Decl(3.ts, 2, 47)) - - const d = import('./0', { with: {} }) - >d : Symbol(d, Decl(3.ts, 3, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 3, 25)) - - const dd = import('./0', {}) - >dd : Symbol(dd, Decl(3.ts, 4, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - declare function foo(): any; - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const e = import('./0', foo()) - >e : Symbol(e, Decl(3.ts, 6, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >foo : Symbol(foo, Decl(3.ts, 4, 28)) - - const f = import() -@@= skipped -37, +31 lines =@@ - - const g = import('./0', {}, {}) - >g : Symbol(g, Decl(3.ts, 8, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - - const h = import('./0', { with: { type: "json" }},) - >h : Symbol(h, Decl(3.ts, 9, 5)) -->'./0' : Symbol("0", Decl(0.ts, 0, 0)) - >with : Symbol(with, Decl(3.ts, 9, 25)) - >type : Symbol(type, Decl(3.ts, 9, 33)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes7.symbols b/testdata/baselines/reference/submodule/conformance/importAttributes7.symbols index 19be227bc9..547b876bd1 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes7.symbols +++ b/testdata/baselines/reference/submodule/conformance/importAttributes7.symbols @@ -21,6 +21,7 @@ export async function f() { const a = import("./a", { >a : Symbol(a, Decl(b.ts, 3, 9)) +>"./a" : Symbol("/a", Decl(a.ts, 0, 0)) with: { a: "a", "b": "b" }, >with : Symbol(with, Decl(b.ts, 3, 29)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes7.symbols.diff b/testdata/baselines/reference/submodule/conformance/importAttributes7.symbols.diff deleted file mode 100644 index a7fbde62ac..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importAttributes7.symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.importAttributes7.symbols -+++ new.importAttributes7.symbols -@@= skipped -20, +20 lines =@@ - - const a = import("./a", { - >a : Symbol(a, Decl(b.ts, 3, 9)) -->"./a" : Symbol("/a", Decl(a.ts, 0, 0)) - - with: { a: "a", "b": "b" }, - >with : Symbol(with, Decl(b.ts, 3, 29)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols b/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols index bdf9fe0911..7817e7c9b3 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols +++ b/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols @@ -26,6 +26,8 @@ async function f() { >f : Symbol(f, Decl(b.ts, 7, 8)) await import("./a", { +>"./a" : Symbol("a", Decl(a.ts, 0, 0)) + with: { >with : Symbol(with, Decl(b.ts, 10, 25)) diff --git a/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols.diff b/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols.diff index 21922b80e3..89654cdf6b 100644 --- a/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importAttributes9.symbols.diff @@ -27,6 +27,7 @@ await import("./a", { ->"./a" : Symbol(ns, Decl(a.ts, 0, 0)) -- ++>"./a" : Symbol("a", Decl(a.ts, 0, 0)) + with: { - >with : Symbol(with, Decl(b.ts, 10, 25)) + >with : Symbol(with, Decl(b.ts, 10, 25)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpression1ES2020.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpression1ES2020.symbols index 7dcb89d42c..2511e3cfa9 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpression1ES2020.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpression1ES2020.symbols @@ -6,8 +6,11 @@ export function foo() { return "foo"; } === 1.ts === import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + var p1 = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { >p1.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -24,11 +27,13 @@ p1.then(zero => { export var p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 6, 10)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) function foo() { >foo : Symbol(foo, Decl(1.ts, 6, 30)) const p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 9, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpression1ES2020.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpression1ES2020.symbols.diff index b8132a960c..be39a78921 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpression1ES2020.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpression1ES2020.symbols.diff @@ -1,14 +1,7 @@ --- old.importCallExpression1ES2020.symbols +++ new.importCallExpression1ES2020.symbols -@@= skipped -5, +5 lines =@@ - - === 1.ts === - import("./0"); -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) -- - var p1 = import("./0"); - >p1 : Symbol(p1, Decl(1.ts, 1, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +@@= skipped -12, +12 lines =@@ + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { ->p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -18,17 +11,4 @@ +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >zero : Symbol(zero, Decl(1.ts, 2, 8)) - return zero.foo(); -@@= skipped -21, +18 lines =@@ - - export var p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 6, 10)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - - function foo() { - >foo : Symbol(foo, Decl(1.ts, 6, 30)) - - const p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 9, 9)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } + return zero.foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpression2ES2020.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpression2ES2020.symbols index c0aca68eff..95e5ce247b 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpression2ES2020.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpression2ES2020.symbols @@ -32,4 +32,5 @@ function foo(x: Promise) { foo(import("./0")); >foo : Symbol(foo, Decl(2.ts, 0, 0)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpression2ES2020.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpression2ES2020.symbols.diff index a29b678e1b..445c0b0ff7 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpression2ES2020.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpression2ES2020.symbols.diff @@ -20,9 +20,4 @@ +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >value : Symbol(value, Decl(2.ts, 1, 11)) - let b = new value.B(); -@@= skipped -17, +17 lines =@@ - - foo(import("./0")); - >foo : Symbol(foo, Decl(2.ts, 0, 0)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) + let b = new value.B(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpression3ES2020.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpression3ES2020.symbols index 78d6448ee2..9a51172d77 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpression3ES2020.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpression3ES2020.symbols @@ -15,6 +15,7 @@ async function foo() { class C extends (await import("./0")).B {} >C : Symbol(C, Decl(2.ts, 0, 22)) >(await import("./0")).B : Symbol(B, Decl(0.ts, 0, 0)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) >B : Symbol(B, Decl(0.ts, 0, 0)) var c = new C(); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpression3ES2020.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpression3ES2020.symbols.diff index 86f805f5dc..09a6f5af23 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpression3ES2020.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpression3ES2020.symbols.diff @@ -9,15 +9,7 @@ } === 2.ts === -@@= skipped -10, +10 lines =@@ - class C extends (await import("./0")).B {} - >C : Symbol(C, Decl(2.ts, 0, 22)) - >(await import("./0")).B : Symbol(B, Decl(0.ts, 0, 0)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - >B : Symbol(B, Decl(0.ts, 0, 0)) - - var c = new C(); -@@= skipped -8, +7 lines =@@ +@@= skipped -18, +18 lines =@@ >C : Symbol(C, Decl(2.ts, 0, 22)) c.print(); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpression4ES2020.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpression4ES2020.symbols index 95150ede1a..e57e52f940 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpression4ES2020.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpression4ES2020.symbols @@ -24,12 +24,14 @@ class C { private myModule = import("./0"); >myModule : Symbol(myModule, Decl(2.ts, 1, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) method() { >method : Symbol(method, Decl(2.ts, 2, 37)) const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(2.ts, 4, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) this.myModule.then(Zero => { >this.myModule.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -54,6 +56,7 @@ class C { let one = await import("./1"); >one : Symbol(one, Decl(2.ts, 9, 15)) +>"./1" : Symbol("1", Decl(1.ts, 0, 0)) console.log(one.backup()); >console : Symbol(console, Decl(2.ts, 0, 11)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpression4ES2020.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpression4ES2020.symbols.diff index 4c72f125f1..2bf969d435 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpression4ES2020.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpression4ES2020.symbols.diff @@ -14,8 +14,8 @@ private myModule = import("./0"); ->myModule : Symbol(C.myModule, Decl(2.ts, 1, 9)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +>myModule : Symbol(myModule, Decl(2.ts, 1, 9)) + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) method() { ->method : Symbol(C.method, Decl(2.ts, 2, 37)) @@ -23,7 +23,7 @@ const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(2.ts, 4, 13)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) this.myModule.then(Zero => { ->this.myModule.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -37,12 +37,4 @@ +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >Zero : Symbol(Zero, Decl(2.ts, 5, 27)) - console.log(Zero.foo()); -@@= skipped -33, +31 lines =@@ - - let one = await import("./1"); - >one : Symbol(one, Decl(2.ts, 9, 15)) -->"./1" : Symbol("1", Decl(1.ts, 0, 0)) - - console.log(one.backup()); - >console : Symbol(console, Decl(2.ts, 0, 11)) \ No newline at end of file + console.log(Zero.foo()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES2020.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES2020.symbols index e41837bce5..0f111c2eab 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES2020.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES2020.symbols @@ -6,6 +6,7 @@ export async function fn() { const req = await import('./test') // ONE >req : Symbol(req, Decl(test.ts, 1, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } export class cl1 { @@ -16,6 +17,7 @@ export class cl1 { const req = await import('./test') // TWO >req : Symbol(req, Decl(test.ts, 6, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } @@ -27,6 +29,7 @@ export const obj = { const req = await import('./test') // THREE >req : Symbol(req, Decl(test.ts, 12, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } @@ -41,6 +44,7 @@ export class cl2 { const req = await import('./test') // FOUR >req : Symbol(req, Decl(test.ts, 19, 17)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } } @@ -50,5 +54,6 @@ export const l = async () => { const req = await import('./test') // FIVE >req : Symbol(req, Decl(test.ts, 25, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES2020.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES2020.symbols.diff index ef515b3903..032339aabc 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES2020.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES2020.symbols.diff @@ -1,13 +1,6 @@ --- old.importCallExpressionAsyncES2020.symbols +++ new.importCallExpressionAsyncES2020.symbols -@@= skipped -5, +5 lines =@@ - - const req = await import('./test') // ONE - >req : Symbol(req, Decl(test.ts, 1, 9)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - - export class cl1 { +@@= skipped -12, +12 lines =@@ >cl1 : Symbol(cl1, Decl(test.ts, 2, 1)) public async m() { @@ -16,19 +9,7 @@ const req = await import('./test') // TWO >req : Symbol(req, Decl(test.ts, 6, 13)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - -@@= skipped -23, +21 lines =@@ - - const req = await import('./test') // THREE - >req : Symbol(req, Decl(test.ts, 12, 13)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - -@@= skipped -8, +7 lines =@@ +@@= skipped -24, +24 lines =@@ >cl2 : Symbol(cl2, Decl(test.ts, 14, 1)) public p = { @@ -36,17 +17,4 @@ +>p : Symbol(p, Decl(test.ts, 16, 18)) m: async () => { - >m : Symbol(m, Decl(test.ts, 17, 16)) - - const req = await import('./test') // FOUR - >req : Symbol(req, Decl(test.ts, 19, 17)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - } -@@= skipped -17, +16 lines =@@ - - const req = await import('./test') // FIVE - >req : Symbol(req, Decl(test.ts, 25, 9)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } + >m : Symbol(m, Decl(test.ts, 17, 16)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.symbols index c483a7f7f3..8d7abda2ae 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.symbols @@ -6,6 +6,7 @@ export async function fn() { const req = await import('./test') // ONE >req : Symbol(req, Decl(test.ts, 1, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } export class cl1 { @@ -16,6 +17,7 @@ export class cl1 { const req = await import('./test') // TWO >req : Symbol(req, Decl(test.ts, 6, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } @@ -27,6 +29,7 @@ export const obj = { const req = await import('./test') // THREE >req : Symbol(req, Decl(test.ts, 12, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } @@ -41,6 +44,7 @@ export class cl2 { const req = await import('./test') // FOUR >req : Symbol(req, Decl(test.ts, 19, 17)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } } @@ -50,5 +54,6 @@ export const l = async () => { const req = await import('./test') // FIVE >req : Symbol(req, Decl(test.ts, 25, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.symbols.diff index d73b362793..fa1f999ddd 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES5CJS.symbols.diff @@ -1,13 +1,6 @@ --- old.importCallExpressionAsyncES5CJS.symbols +++ new.importCallExpressionAsyncES5CJS.symbols -@@= skipped -5, +5 lines =@@ - - const req = await import('./test') // ONE - >req : Symbol(req, Decl(test.ts, 1, 9)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - - export class cl1 { +@@= skipped -12, +12 lines =@@ >cl1 : Symbol(cl1, Decl(test.ts, 2, 1)) public async m() { @@ -16,19 +9,7 @@ const req = await import('./test') // TWO >req : Symbol(req, Decl(test.ts, 6, 13)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - -@@= skipped -23, +21 lines =@@ - - const req = await import('./test') // THREE - >req : Symbol(req, Decl(test.ts, 12, 13)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - -@@= skipped -8, +7 lines =@@ +@@= skipped -24, +24 lines =@@ >cl2 : Symbol(cl2, Decl(test.ts, 14, 1)) public p = { @@ -36,17 +17,4 @@ +>p : Symbol(p, Decl(test.ts, 16, 18)) m: async () => { - >m : Symbol(m, Decl(test.ts, 17, 16)) - - const req = await import('./test') // FOUR - >req : Symbol(req, Decl(test.ts, 19, 17)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - } -@@= skipped -17, +16 lines =@@ - - const req = await import('./test') // FIVE - >req : Symbol(req, Decl(test.ts, 25, 9)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } + >m : Symbol(m, Decl(test.ts, 17, 16)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.symbols index b0a6dd5775..1dddb6ab31 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.symbols @@ -6,6 +6,7 @@ export async function fn() { const req = await import('./test') // ONE >req : Symbol(req, Decl(test.ts, 1, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } export class cl1 { @@ -16,6 +17,7 @@ export class cl1 { const req = await import('./test') // TWO >req : Symbol(req, Decl(test.ts, 6, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } @@ -27,6 +29,7 @@ export const obj = { const req = await import('./test') // THREE >req : Symbol(req, Decl(test.ts, 12, 13)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } @@ -41,6 +44,7 @@ export class cl2 { const req = await import('./test') // FOUR >req : Symbol(req, Decl(test.ts, 19, 17)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } } } @@ -50,5 +54,6 @@ export const l = async () => { const req = await import('./test') // FIVE >req : Symbol(req, Decl(test.ts, 25, 9)) +>'./test' : Symbol("test", Decl(test.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.symbols.diff index d7b580979f..37be4c7d44 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionAsyncES6CJS.symbols.diff @@ -1,13 +1,6 @@ --- old.importCallExpressionAsyncES6CJS.symbols +++ new.importCallExpressionAsyncES6CJS.symbols -@@= skipped -5, +5 lines =@@ - - const req = await import('./test') // ONE - >req : Symbol(req, Decl(test.ts, 1, 9)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - - export class cl1 { +@@= skipped -12, +12 lines =@@ >cl1 : Symbol(cl1, Decl(test.ts, 2, 1)) public async m() { @@ -16,19 +9,7 @@ const req = await import('./test') // TWO >req : Symbol(req, Decl(test.ts, 6, 13)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - -@@= skipped -23, +21 lines =@@ - - const req = await import('./test') // THREE - >req : Symbol(req, Decl(test.ts, 12, 13)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - -@@= skipped -8, +7 lines =@@ +@@= skipped -24, +24 lines =@@ >cl2 : Symbol(cl2, Decl(test.ts, 14, 1)) public p = { @@ -36,17 +17,4 @@ +>p : Symbol(p, Decl(test.ts, 16, 18)) m: async () => { - >m : Symbol(m, Decl(test.ts, 17, 16)) - - const req = await import('./test') // FOUR - >req : Symbol(req, Decl(test.ts, 19, 17)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } - } - } -@@= skipped -17, +16 lines =@@ - - const req = await import('./test') // FIVE - >req : Symbol(req, Decl(test.ts, 25, 9)) -->'./test' : Symbol("test", Decl(test.ts, 0, 0)) - } + >m : Symbol(m, Decl(test.ts, 17, 16)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.symbols index d78006e8f8..369fb59782 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.symbols @@ -19,13 +19,16 @@ let p1: Promise = import("./defaultPath"); >p1 : Symbol(p1, Decl(1.ts, 3, 3)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >anotherModule : Symbol(anotherModule, Decl(1.ts, 1, 6)) +>"./defaultPath" : Symbol("defaultPath", Decl(defaultPath.ts, 0, 0)) let p2 = import("./defaultPath") as Promise; >p2 : Symbol(p2, Decl(1.ts, 4, 3)) +>"./defaultPath" : Symbol("defaultPath", Decl(defaultPath.ts, 0, 0)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >anotherModule : Symbol(anotherModule, Decl(1.ts, 1, 6)) let p3: Promise = import("./defaultPath"); >p3 : Symbol(p3, Decl(1.ts, 5, 3)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>"./defaultPath" : Symbol("defaultPath", Decl(defaultPath.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.symbols.diff index e7ac06112a..905ba5bb7e 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionCheckReturntype1.symbols.diff @@ -5,10 +5,12 @@ >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >anotherModule : Symbol(anotherModule, Decl(1.ts, 1, 6)) ->"./defaultPath" : Symbol(defaultModule, Decl(defaultPath.ts, 0, 0)) ++>"./defaultPath" : Symbol("defaultPath", Decl(defaultPath.ts, 0, 0)) let p2 = import("./defaultPath") as Promise; >p2 : Symbol(p2, Decl(1.ts, 4, 3)) ->"./defaultPath" : Symbol(defaultModule, Decl(defaultPath.ts, 0, 0)) ++>"./defaultPath" : Symbol("defaultPath", Decl(defaultPath.ts, 0, 0)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) >anotherModule : Symbol(anotherModule, Decl(1.ts, 1, 6)) @@ -16,3 +18,4 @@ >p3 : Symbol(p3, Decl(1.ts, 5, 3)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) ->"./defaultPath" : Symbol(defaultModule, Decl(defaultPath.ts, 0, 0)) ++>"./defaultPath" : Symbol("defaultPath", Decl(defaultPath.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit2.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit2.symbols index c7c0ad0508..9a1067206e 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit2.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit2.symbols @@ -7,4 +7,5 @@ export function foo() { return "foo"; } === 1.ts === var p1 = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 0, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit2.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit2.symbols.diff deleted file mode 100644 index 5eea4e0bf9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit2.symbols.diff +++ /dev/null @@ -1,7 +0,0 @@ ---- old.importCallExpressionDeclarationEmit2.symbols -+++ new.importCallExpressionDeclarationEmit2.symbols -@@= skipped -6, +6 lines =@@ - === 1.ts === - var p1 = import("./0"); - >p1 : Symbol(p1, Decl(1.ts, 0, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit3.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit3.symbols index 93dd54cfca..714f738d57 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit3.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit3.symbols @@ -12,6 +12,7 @@ import * as Zero from "./0"; >Zero : Symbol(Zero, Decl(1.ts, 1, 6)) import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) export var p0: Promise = import(getPath()); >p0 : Symbol(p0, Decl(1.ts, 4, 10)) @@ -23,8 +24,10 @@ export var p1: Promise = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 5, 10)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) >Zero : Symbol(Zero, Decl(1.ts, 1, 6)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) export var p2: Promise = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 6, 10)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit3.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit3.symbols.diff index cb4fb2c116..54b6c8a73b 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit3.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionDeclarationEmit3.symbols.diff @@ -5,16 +5,19 @@ import("./0"); ->"./0" : Symbol(Zero, Decl(0.ts, 0, 0)) ++>"./0" : Symbol("0", Decl(0.ts, 0, 0)) export var p0: Promise = import(getPath()); >p0 : Symbol(p0, Decl(1.ts, 4, 10)) -@@= skipped -12, +11 lines =@@ +@@= skipped -12, +12 lines =@@ >p1 : Symbol(p1, Decl(1.ts, 5, 10)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) >Zero : Symbol(Zero, Decl(1.ts, 1, 6)) ->"./0" : Symbol(Zero, Decl(0.ts, 0, 0)) ++>"./0" : Symbol("0", Decl(0.ts, 0, 0)) export var p2: Promise = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 6, 10)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --)) ->"./0" : Symbol(Zero, Decl(0.ts, 0, 0)) ++>"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.symbols index f7a32f8250..0461d7756b 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.symbols @@ -6,8 +6,11 @@ export function foo() { return "foo"; } === 1.ts === import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + var p1 = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { >p1.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -24,12 +27,14 @@ p1.then(zero => { export var p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 6, 10)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) function foo() { >foo : Symbol(foo, Decl(1.ts, 6, 30)) const p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 9, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } class C { @@ -40,6 +45,7 @@ class C { const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(1.ts, 14, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } } @@ -51,5 +57,6 @@ export class D { const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.symbols.diff index 81eeea4478..e6387f1aea 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionES5CJS.symbols.diff @@ -1,14 +1,7 @@ --- old.importCallExpressionES5CJS.symbols +++ new.importCallExpressionES5CJS.symbols -@@= skipped -5, +5 lines =@@ - - === 1.ts === - import("./0"); -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) -- - var p1 = import("./0"); - >p1 : Symbol(p1, Decl(1.ts, 1, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +@@= skipped -12, +12 lines =@@ + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { ->p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -19,21 +12,7 @@ >zero : Symbol(zero, Decl(1.ts, 2, 8)) return zero.foo(); -@@= skipped -21, +18 lines =@@ - - export var p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 6, 10)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - - function foo() { - >foo : Symbol(foo, Decl(1.ts, 6, 30)) - - const p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 9, 9)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } - - class C { +@@= skipped -28, +28 lines =@@ >C : Symbol(C, Decl(1.ts, 10, 1)) method() { @@ -42,11 +21,7 @@ const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(1.ts, 14, 13)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } - } - -@@= skipped -26, +23 lines =@@ +@@= skipped -12, +12 lines =@@ >D : Symbol(D, Decl(1.ts, 16, 1)) method() { @@ -54,7 +29,4 @@ +>method : Symbol(method, Decl(1.ts, 18, 16)) const loadAsync = import ("./0"); - >loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } - } \ No newline at end of file + >loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.symbols index 62741bbf17..5fddbf0972 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.symbols @@ -6,8 +6,11 @@ export function foo() { return "foo"; } === 1.ts === import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + var p1 = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { >p1.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -24,12 +27,14 @@ p1.then(zero => { export var p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 6, 10)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) function foo() { >foo : Symbol(foo, Decl(1.ts, 6, 30)) const p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 9, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } class C { @@ -40,6 +45,7 @@ class C { const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(1.ts, 14, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } } @@ -51,5 +57,6 @@ export class D { const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.symbols.diff index 95bbffaae0..9bea46649b 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionES6CJS.symbols.diff @@ -1,14 +1,7 @@ --- old.importCallExpressionES6CJS.symbols +++ new.importCallExpressionES6CJS.symbols -@@= skipped -5, +5 lines =@@ - - === 1.ts === - import("./0"); -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) -- - var p1 = import("./0"); - >p1 : Symbol(p1, Decl(1.ts, 1, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +@@= skipped -12, +12 lines =@@ + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { ->p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -19,21 +12,7 @@ >zero : Symbol(zero, Decl(1.ts, 2, 8)) return zero.foo(); -@@= skipped -21, +18 lines =@@ - - export var p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 6, 10)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - - function foo() { - >foo : Symbol(foo, Decl(1.ts, 6, 30)) - - const p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 9, 9)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } - - class C { +@@= skipped -28, +28 lines =@@ >C : Symbol(C, Decl(1.ts, 10, 1)) method() { @@ -42,11 +21,7 @@ const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(1.ts, 14, 13)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } - } - -@@= skipped -26, +23 lines =@@ +@@= skipped -12, +12 lines =@@ >D : Symbol(D, Decl(1.ts, 16, 1)) method() { @@ -54,7 +29,4 @@ +>method : Symbol(method, Decl(1.ts, 18, 16)) const loadAsync = import ("./0"); - >loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } - } \ No newline at end of file + >loadAsync : Symbol(loadAsync, Decl(1.ts, 20, 13)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionErrorInES2015.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionErrorInES2015.symbols index f6d97dd7eb..fe777076c3 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionErrorInES2015.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionErrorInES2015.symbols @@ -6,8 +6,11 @@ export function foo() { return "foo"; } === 1.ts === import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + var p1 = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { >p1.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -27,4 +30,5 @@ function foo() { const p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 7, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionErrorInES2015.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionErrorInES2015.symbols.diff index bf8d2b09e7..62c3046dae 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionErrorInES2015.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionErrorInES2015.symbols.diff @@ -1,14 +1,7 @@ --- old.importCallExpressionErrorInES2015.symbols +++ new.importCallExpressionErrorInES2015.symbols -@@= skipped -5, +5 lines =@@ - - === 1.ts === - import("./0"); -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) -- - var p1 = import("./0"); - >p1 : Symbol(p1, Decl(1.ts, 1, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +@@= skipped -12, +12 lines =@@ + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { ->p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -18,10 +11,4 @@ +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >zero : Symbol(zero, Decl(1.ts, 2, 8)) - return zero.foo(); -@@= skipped -24, +21 lines =@@ - - const p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 7, 9)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } \ No newline at end of file + return zero.foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.symbols index dbc5644afb..f85e3b6b45 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.symbols @@ -6,8 +6,11 @@ export function foo() { return "foo"; } === 1.ts === import("./0"); +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) + var p1 = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { >p1.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -24,10 +27,12 @@ p1.then(zero => { export var p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 6, 10)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) function foo() { >foo : Symbol(foo, Decl(1.ts, 6, 30)) const p2 = import("./0"); >p2 : Symbol(p2, Decl(1.ts, 9, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.symbols.diff index de73aed40d..e1bff1f273 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS1.symbols.diff @@ -1,14 +1,7 @@ --- old.importCallExpressionInCJS1.symbols +++ new.importCallExpressionInCJS1.symbols -@@= skipped -5, +5 lines =@@ - - === 1.ts === - import("./0"); -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) -- - var p1 = import("./0"); - >p1 : Symbol(p1, Decl(1.ts, 1, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +@@= skipped -12, +12 lines =@@ + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) p1.then(zero => { ->p1.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -18,17 +11,4 @@ +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >zero : Symbol(zero, Decl(1.ts, 2, 8)) - return zero.foo(); -@@= skipped -21, +18 lines =@@ - - export var p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 6, 10)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - - function foo() { - >foo : Symbol(foo, Decl(1.ts, 6, 30)) - - const p2 = import("./0"); - >p2 : Symbol(p2, Decl(1.ts, 9, 9)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - } \ No newline at end of file + return zero.foo(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.symbols index 10a8360a8a..d63b35a299 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.symbols @@ -23,6 +23,7 @@ async function compute(promise: Promise) { j = await import("./1"); >j : Symbol(j, Decl(2.ts, 1, 7)) +>"./1" : Symbol("1", Decl(1.ts, 0, 0)) return j.backup(); >j : Symbol(j, Decl(2.ts, 1, 7)) @@ -33,4 +34,5 @@ async function compute(promise: Promise) { compute(import("./0")); >compute : Symbol(compute, Decl(2.ts, 0, 0)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.symbols.diff deleted file mode 100644 index 01432b094d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS2.symbols.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.importCallExpressionInCJS2.symbols -+++ new.importCallExpressionInCJS2.symbols -@@= skipped -22, +22 lines =@@ - - j = await import("./1"); - >j : Symbol(j, Decl(2.ts, 1, 7)) -->"./1" : Symbol("1", Decl(1.ts, 0, 0)) - - return j.backup(); - >j : Symbol(j, Decl(2.ts, 1, 7)) -@@= skipped -11, +10 lines =@@ - - compute(import("./0")); - >compute : Symbol(compute, Decl(2.ts, 0, 0)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.symbols index 09637690cf..f44f717d2d 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.symbols @@ -33,4 +33,5 @@ function foo(x: Promise) { foo(import("./0")); >foo : Symbol(foo, Decl(2.ts, 0, 0)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.symbols.diff index 762d050b8a..267d2e7720 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS3.symbols.diff @@ -20,9 +20,4 @@ +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >value : Symbol(value, Decl(2.ts, 2, 11)) - let b = new value.B(); -@@= skipped -17, +17 lines =@@ - - foo(import("./0")); - >foo : Symbol(foo, Decl(2.ts, 0, 0)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) + let b = new value.B(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.symbols index fbf0ffd3da..852049d4fd 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.symbols @@ -15,6 +15,7 @@ async function foo() { class C extends (await import("./0")).B {} >C : Symbol(C, Decl(2.ts, 0, 22)) >(await import("./0")).B : Symbol(B, Decl(0.ts, 0, 0)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) >B : Symbol(B, Decl(0.ts, 0, 0)) var c = new C(); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.symbols.diff index 1af019a891..47c5015aa3 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS4.symbols.diff @@ -9,15 +9,7 @@ } === 2.ts === -@@= skipped -10, +10 lines =@@ - class C extends (await import("./0")).B {} - >C : Symbol(C, Decl(2.ts, 0, 22)) - >(await import("./0")).B : Symbol(B, Decl(0.ts, 0, 0)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - >B : Symbol(B, Decl(0.ts, 0, 0)) - - var c = new C(); -@@= skipped -8, +7 lines =@@ +@@= skipped -18, +18 lines =@@ >C : Symbol(C, Decl(2.ts, 0, 22)) c.print(); diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.symbols index b96e708a3f..ab9462b5bc 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.symbols @@ -24,12 +24,14 @@ class C { private myModule = import("./0"); >myModule : Symbol(myModule, Decl(2.ts, 1, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) method() { >method : Symbol(method, Decl(2.ts, 2, 37)) const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(2.ts, 4, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) this.myModule.then(Zero => { >this.myModule.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -54,6 +56,7 @@ class C { let one = await import("./1"); >one : Symbol(one, Decl(2.ts, 9, 15)) +>"./1" : Symbol("1", Decl(1.ts, 0, 0)) console.log(one.backup()); >console : Symbol(console, Decl(2.ts, 0, 11)) @@ -70,12 +73,14 @@ export class D { private myModule = import("./0"); >myModule : Symbol(myModule, Decl(2.ts, 15, 16)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) method() { >method : Symbol(method, Decl(2.ts, 16, 37)) const loadAsync = import("./0"); >loadAsync : Symbol(loadAsync, Decl(2.ts, 18, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) this.myModule.then(Zero => { >this.myModule.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -100,6 +105,7 @@ export class D { let one = await import("./1"); >one : Symbol(one, Decl(2.ts, 23, 15)) +>"./1" : Symbol("1", Decl(1.ts, 0, 0)) console.log(one.backup()); >console : Symbol(console, Decl(2.ts, 0, 11)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.symbols.diff index 997eece120..3288f451f2 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInCJS5.symbols.diff @@ -14,8 +14,8 @@ private myModule = import("./0"); ->myModule : Symbol(C.myModule, Decl(2.ts, 1, 9)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +>myModule : Symbol(myModule, Decl(2.ts, 1, 9)) + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) method() { ->method : Symbol(C.method, Decl(2.ts, 2, 37)) @@ -23,7 +23,7 @@ const loadAsync = import ("./0"); >loadAsync : Symbol(loadAsync, Decl(2.ts, 4, 13)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) this.myModule.then(Zero => { ->this.myModule.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -38,21 +38,13 @@ >Zero : Symbol(Zero, Decl(2.ts, 5, 27)) console.log(Zero.foo()); -@@= skipped -33, +31 lines =@@ - - let one = await import("./1"); - >one : Symbol(one, Decl(2.ts, 9, 15)) -->"./1" : Symbol("1", Decl(1.ts, 0, 0)) - - console.log(one.backup()); - >console : Symbol(console, Decl(2.ts, 0, 11)) -@@= skipped -16, +15 lines =@@ +@@= skipped -49, +49 lines =@@ >D : Symbol(D, Decl(2.ts, 13, 1)) private myModule = import("./0"); ->myModule : Symbol(D.myModule, Decl(2.ts, 15, 16)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +>myModule : Symbol(myModule, Decl(2.ts, 15, 16)) + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) method() { ->method : Symbol(D.method, Decl(2.ts, 16, 37)) @@ -60,7 +52,7 @@ const loadAsync = import("./0"); >loadAsync : Symbol(loadAsync, Decl(2.ts, 18, 13)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) this.myModule.then(Zero => { ->this.myModule.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -74,12 +66,4 @@ +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >Zero : Symbol(Zero, Decl(2.ts, 19, 27)) - console.log(Zero.foo()); -@@= skipped -33, +31 lines =@@ - - let one = await import("./1"); - >one : Symbol(one, Decl(2.ts, 23, 15)) -->"./1" : Symbol("1", Decl(1.ts, 0, 0)) - - console.log(one.backup()); - >console : Symbol(console, Decl(2.ts, 0, 11)) \ No newline at end of file + console.log(Zero.foo()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.symbols index c2fb9cf411..7b21aebd76 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.symbols @@ -8,5 +8,6 @@ export = 42; export = async function() { const something = await import("./something"); >something : Symbol(something, Decl(index.ts, 1, 9)) +>"./something" : Symbol("something", Decl(something.ts, 0, 0)) }; diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.symbols.diff deleted file mode 100644 index 33b27a93b6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInExportEqualsCJS.symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.importCallExpressionInExportEqualsCJS.symbols -+++ new.importCallExpressionInExportEqualsCJS.symbols -@@= skipped -7, +7 lines =@@ - export = async function() { - const something = await import("./something"); - >something : Symbol(something, Decl(index.ts, 1, 9)) -->"./something" : Symbol("something", Decl(something.ts, 0, 0)) - - }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.symbols index 65d1705742..fa68fdd6d9 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.symbols @@ -7,6 +7,7 @@ export function foo() { return "foo"; } === 1.ts === var p1 = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 0, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) function arguments() { } // this is allow as the file doesn't have implicit "use strict" >arguments : Symbol(arguments, Decl(1.ts, 0, 23)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.symbols.diff deleted file mode 100644 index 431fe542ed..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext1.symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.importCallExpressionInScriptContext1.symbols -+++ new.importCallExpressionInScriptContext1.symbols -@@= skipped -6, +6 lines =@@ - === 1.ts === - var p1 = import("./0"); - >p1 : Symbol(p1, Decl(1.ts, 0, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - - function arguments() { } // this is allow as the file doesn't have implicit "use strict" - >arguments : Symbol(arguments, Decl(1.ts, 0, 23)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.symbols index 75aef1ed0b..fe60b1c964 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.symbols @@ -8,6 +8,7 @@ export function foo() { return "foo"; } "use strict" var p1 = import("./0"); >p1 : Symbol(p1, Decl(1.ts, 1, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) function arguments() { } >arguments : Symbol(arguments, Decl(1.ts, 1, 23)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.symbols.diff deleted file mode 100644 index 617976191a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionInScriptContext2.symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.importCallExpressionInScriptContext2.symbols -+++ new.importCallExpressionInScriptContext2.symbols -@@= skipped -7, +7 lines =@@ - "use strict" - var p1 = import("./0"); - >p1 : Symbol(p1, Decl(1.ts, 1, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - - function arguments() { } - >arguments : Symbol(arguments, Decl(1.ts, 1, 23)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.symbols index 0ca1616774..01a262378e 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.symbols @@ -10,5 +10,6 @@ async function foo() { return await import((await import("./foo")).default); >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) >default : Symbol(default, Decl(foo.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.symbols.diff deleted file mode 100644 index 3c68604ef8..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS.symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.importCallExpressionNestedCJS.symbols -+++ new.importCallExpressionNestedCJS.symbols -@@= skipped -9, +9 lines =@@ - - return await import((await import("./foo")).default); - >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) -->"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) - >default : Symbol(default, Decl(foo.ts, 0, 0)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.symbols index 561659d1e3..e16831d526 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.symbols @@ -10,5 +10,6 @@ async function foo() { return await import((await import("./foo")).default); >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) >default : Symbol(default, Decl(foo.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.symbols.diff deleted file mode 100644 index f5f9239721..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedCJS2.symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.importCallExpressionNestedCJS2.symbols -+++ new.importCallExpressionNestedCJS2.symbols -@@= skipped -9, +9 lines =@@ - - return await import((await import("./foo")).default); - >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) -->"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) - >default : Symbol(default, Decl(foo.ts, 0, 0)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2015.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2015.symbols index 787868f246..857d9c265e 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2015.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2015.symbols @@ -10,5 +10,6 @@ async function foo() { return await import((await import("./foo")).default); >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) >default : Symbol(default, Decl(foo.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2015.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2015.symbols.diff deleted file mode 100644 index 517ddcd3d8..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2015.symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.importCallExpressionNestedES2015.symbols -+++ new.importCallExpressionNestedES2015.symbols -@@= skipped -9, +9 lines =@@ - - return await import((await import("./foo")).default); - >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) -->"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) - >default : Symbol(default, Decl(foo.ts, 0, 0)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20152.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20152.symbols index 398ce1d61d..baad97d873 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20152.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20152.symbols @@ -10,5 +10,6 @@ async function foo() { return await import((await import("./foo")).default); >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) >default : Symbol(default, Decl(foo.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20152.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20152.symbols.diff deleted file mode 100644 index 8d587e0bbf..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20152.symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.importCallExpressionNestedES20152.symbols -+++ new.importCallExpressionNestedES20152.symbols -@@= skipped -9, +9 lines =@@ - - return await import((await import("./foo")).default); - >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) -->"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) - >default : Symbol(default, Decl(foo.ts, 0, 0)) - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2020.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2020.symbols index f06d1033fc..69c49a6b6b 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2020.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2020.symbols @@ -10,6 +10,7 @@ async function foo() { return await import((await import("./foo")).default); >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) >default : Symbol(default, Decl(foo.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2020.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2020.symbols.diff deleted file mode 100644 index d37047a084..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES2020.symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.importCallExpressionNestedES2020.symbols -+++ new.importCallExpressionNestedES2020.symbols -@@= skipped -9, +9 lines =@@ - - return await import((await import("./foo")).default); - >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) -->"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) - >default : Symbol(default, Decl(foo.ts, 0, 0)) - } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20202.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20202.symbols index 77c5f27b46..f119260879 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20202.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20202.symbols @@ -10,6 +10,7 @@ async function foo() { return await import((await import("./foo")).default); >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) +>"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) >default : Symbol(default, Decl(foo.ts, 0, 0)) } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20202.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20202.symbols.diff deleted file mode 100644 index d816bff15e..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNestedES20202.symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.importCallExpressionNestedES20202.symbols -+++ new.importCallExpressionNestedES20202.symbols -@@= skipped -9, +9 lines =@@ - - return await import((await import("./foo")).default); - >(await import("./foo")).default : Symbol(default, Decl(foo.ts, 0, 0)) -->"./foo" : Symbol("foo", Decl(foo.ts, 0, 0)) - >default : Symbol(default, Decl(foo.ts, 0, 0)) - } diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.symbols index e0e35a4797..ec4fd1f2bb 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.symbols @@ -24,12 +24,14 @@ class C { private myModule = import("./0"); >myModule : Symbol(myModule, Decl(2.ts, 1, 9)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) method() { >method : Symbol(method, Decl(2.ts, 2, 37)) const loadAsync = import("./0"); >loadAsync : Symbol(loadAsync, Decl(2.ts, 4, 13)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) this.myModule.then(Zero => { >this.myModule.then : Symbol(then, Decl(lib.es5.d.ts, --, --)) @@ -54,6 +56,7 @@ class C { let one = await import("./1"); >one : Symbol(one, Decl(2.ts, 9, 15)) +>"./1" : Symbol("1", Decl(1.ts, 0, 0)) console.log(one.backup()); >console : Symbol(console, Decl(2.ts, 0, 11)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.symbols.diff index a729bdcb1d..140e20daff 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionNoModuleKindSpecified.symbols.diff @@ -14,8 +14,8 @@ private myModule = import("./0"); ->myModule : Symbol(C.myModule, Decl(2.ts, 1, 9)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) +>myModule : Symbol(myModule, Decl(2.ts, 1, 9)) + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) method() { ->method : Symbol(C.method, Decl(2.ts, 2, 37)) @@ -23,7 +23,7 @@ const loadAsync = import("./0"); >loadAsync : Symbol(loadAsync, Decl(2.ts, 4, 13)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) + >"./0" : Symbol("0", Decl(0.ts, 0, 0)) this.myModule.then(Zero => { ->this.myModule.then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) @@ -37,12 +37,4 @@ +>then : Symbol(then, Decl(lib.es5.d.ts, --, --)) >Zero : Symbol(Zero, Decl(2.ts, 5, 27)) - console.log(Zero.foo()); -@@= skipped -33, +31 lines =@@ - - let one = await import("./1"); - >one : Symbol(one, Decl(2.ts, 9, 15)) -->"./1" : Symbol("1", Decl(1.ts, 0, 0)) - - console.log(one.backup()); - >console : Symbol(console, Decl(2.ts, 0, 11)) \ No newline at end of file + console.log(Zero.foo()); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.symbols b/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.symbols index ce757bf000..d17e7a3652 100644 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.symbols +++ b/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.symbols @@ -9,7 +9,9 @@ export function foo() { return "foo"; } var p1 = import>("./0"); // error >p1 : Symbol(p1, Decl(1.ts, 1, 3)) >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) var p2 = import<>("./0"); // error >p2 : Symbol(p2, Decl(1.ts, 2, 3)) +>"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.symbols.diff b/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.symbols.diff deleted file mode 100644 index a1c14df472..0000000000 --- a/testdata/baselines/reference/submodule/conformance/importCallExpressionWithTypeArgument.symbols.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.importCallExpressionWithTypeArgument.symbols -+++ new.importCallExpressionWithTypeArgument.symbols -@@= skipped -8, +8 lines =@@ - var p1 = import>("./0"); // error - >p1 : Symbol(p1, Decl(1.ts, 1, 3)) - >Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) - - var p2 = import<>("./0"); // error - >p2 : Symbol(p2, Decl(1.ts, 2, 3)) -->"./0" : Symbol("0", Decl(0.ts, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/intersectionsAndEmptyObjects.symbols b/testdata/baselines/reference/submodule/conformance/intersectionsAndEmptyObjects.symbols index 52c85571d3..15c6461ddd 100644 --- a/testdata/baselines/reference/submodule/conformance/intersectionsAndEmptyObjects.symbols +++ b/testdata/baselines/reference/submodule/conformance/intersectionsAndEmptyObjects.symbols @@ -274,6 +274,7 @@ declare function mock(_: Promise): {} & M; mock(import('./ex')) >mock : Symbol(mock, Decl(intersectionsAndEmptyObjects.ts, 80, 52)) +>'./ex' : Symbol("ex", Decl(ex.d.ts, 0, 0)) === ex.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/intersectionsAndEmptyObjects.symbols.diff b/testdata/baselines/reference/submodule/conformance/intersectionsAndEmptyObjects.symbols.diff index 16f80cb78c..5ab8d5fcbe 100644 --- a/testdata/baselines/reference/submodule/conformance/intersectionsAndEmptyObjects.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/intersectionsAndEmptyObjects.symbols.diff @@ -11,11 +11,3 @@ +>assign : Symbol(assign, Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --), Decl(lib.es2015.core.d.ts, --, --)) >d1 : Symbol(d1, Decl(intersectionsAndEmptyObjects.ts, 30, 77)) >d2 : Symbol(d2, Decl(intersectionsAndEmptyObjects.ts, 31, 9)) - -@@= skipped -156, +156 lines =@@ - - mock(import('./ex')) - >mock : Symbol(mock, Decl(intersectionsAndEmptyObjects.ts, 80, 52)) -->'./ex' : Symbol("ex", Decl(ex.d.ts, 0, 0)) - - === ex.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols b/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols index 6997b1f4a7..72508ecd14 100644 --- a/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols +++ b/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols @@ -4,6 +4,7 @@ export const a = async () => (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 0, 12)) >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 0, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 0, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols.diff b/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols.diff deleted file mode 100644 index 925c8c131a..0000000000 --- a/testdata/baselines/reference/submodule/conformance/legacyNodeModulesExportsSpecifierGenerationConditions.symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.legacyNodeModulesExportsSpecifierGenerationConditions.symbols -+++ new.legacyNodeModulesExportsSpecifierGenerationConditions.symbols -@@= skipped -3, +3 lines =@@ - export const a = async () => (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 0, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 0, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 0, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/moduleExportAliasImported.symbols b/testdata/baselines/reference/submodule/conformance/moduleExportAliasImported.symbols index 7f1206e1a5..eed33947c6 100644 --- a/testdata/baselines/reference/submodule/conformance/moduleExportAliasImported.symbols +++ b/testdata/baselines/reference/submodule/conformance/moduleExportAliasImported.symbols @@ -14,6 +14,6 @@ module.exports = alias >alias : Symbol(alias, Decl(bug28014.js, 0, 19)) === importer.js === - import('./bug28014') +>'./bug28014' : Symbol("bug28014", Decl(bug28014.js, 0, 0)) diff --git a/testdata/baselines/reference/submodule/conformance/moduleExportAliasImported.symbols.diff b/testdata/baselines/reference/submodule/conformance/moduleExportAliasImported.symbols.diff index 3de71be421..db6b4bdc5c 100644 --- a/testdata/baselines/reference/submodule/conformance/moduleExportAliasImported.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/moduleExportAliasImported.symbols.diff @@ -21,7 +21,4 @@ +>exports : Symbol(alias, Decl(bug28014.js, 0, 19)) >alias : Symbol(alias, Decl(bug28014.js, 0, 19)) - === importer.js === -+ - import('./bug28014') -->'./bug28014' : Symbol("bug28014", Decl(bug28014.js, 0, 0)) + === importer.js === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node16).symbols index c2a04c2acd..eabf1117f6 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node16).symbols @@ -7,6 +7,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.js, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === index.js === // esm format file @@ -15,6 +16,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.js, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === types.d.ts === declare module "fs"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node16).symbols.diff deleted file mode 100644 index 513dfb087c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node16).symbols.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.nodeModulesAllowJsDynamicImport(module=node16).symbols -+++ new.nodeModulesAllowJsDynamicImport(module=node16).symbols -@@= skipped -6, +6 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.js, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === index.js === - // esm format file -@@= skipped -9, +8 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.js, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === types.d.ts === - declare module "fs"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node18).symbols index c2a04c2acd..eabf1117f6 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node18).symbols @@ -7,6 +7,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.js, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === index.js === // esm format file @@ -15,6 +16,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.js, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === types.d.ts === declare module "fs"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node18).symbols.diff deleted file mode 100644 index 6ff86c85ca..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=node18).symbols.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.nodeModulesAllowJsDynamicImport(module=node18).symbols -+++ new.nodeModulesAllowJsDynamicImport(module=node18).symbols -@@= skipped -6, +6 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.js, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === index.js === - // esm format file -@@= skipped -9, +8 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.js, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === types.d.ts === - declare module "fs"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=nodenext).symbols index c2a04c2acd..eabf1117f6 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=nodenext).symbols @@ -7,6 +7,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.js, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === index.js === // esm format file @@ -15,6 +16,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.js, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === types.d.ts === declare module "fs"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=nodenext).symbols.diff deleted file mode 100644 index 3797119c1b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsDynamicImport(module=nodenext).symbols.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.nodeModulesAllowJsDynamicImport(module=nodenext).symbols -+++ new.nodeModulesAllowJsDynamicImport(module=nodenext).symbols -@@= skipped -6, +6 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.js, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === index.js === - // esm format file -@@= skipped -9, +8 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.js, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === types.d.ts === - declare module "fs"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node16).symbols index 9889d039f3..e44685bf66 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node16).symbols @@ -20,9 +20,11 @@ export async function f() { const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) +>"../index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) +>"./index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) h(); >h : Symbol(h, Decl(index.js, 1, 8)) @@ -47,9 +49,11 @@ export async function h() { const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) +>"./index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) +>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) f(); >f : Symbol(f, Decl(index.js, 3, 8)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node16).symbols.diff index 74026bbd42..19bb900b79 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node16).symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node16).symbols.diff @@ -5,22 +5,26 @@ const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) ->"../index.js" : Symbol(mod, Decl(index.js, 0, 0)) ++>"../index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) ->"./index.js" : Symbol(mod2, Decl(index.js, 0, 0)) ++>"./index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) h(); >h : Symbol(h, Decl(index.js, 1, 8)) -@@= skipped -29, +27 lines =@@ +@@= skipped -29, +29 lines =@@ const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) ->"./index.js" : Symbol(mod, Decl(index.js, 0, 0)) ++>"./index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) ->"./subfolder/index.js" : Symbol(mod2, Decl(index.js, 0, 0)) ++>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) f(); >f : Symbol(f, Decl(index.js, 3, 8)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node18).symbols index 9889d039f3..e44685bf66 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node18).symbols @@ -20,9 +20,11 @@ export async function f() { const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) +>"../index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) +>"./index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) h(); >h : Symbol(h, Decl(index.js, 1, 8)) @@ -47,9 +49,11 @@ export async function h() { const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) +>"./index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) +>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) f(); >f : Symbol(f, Decl(index.js, 3, 8)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node18).symbols.diff index 75ca17b10a..c54e3bcff8 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node18).symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=node18).symbols.diff @@ -5,22 +5,26 @@ const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) ->"../index.js" : Symbol(mod, Decl(index.js, 0, 0)) ++>"../index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) ->"./index.js" : Symbol(mod2, Decl(index.js, 0, 0)) ++>"./index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) h(); >h : Symbol(h, Decl(index.js, 1, 8)) -@@= skipped -29, +27 lines =@@ +@@= skipped -29, +29 lines =@@ const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) ->"./index.js" : Symbol(mod, Decl(index.js, 0, 0)) ++>"./index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) ->"./subfolder/index.js" : Symbol(mod2, Decl(index.js, 0, 0)) ++>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) f(); >f : Symbol(f, Decl(index.js, 3, 8)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).symbols index 9889d039f3..e44685bf66 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).symbols @@ -20,9 +20,11 @@ export async function f() { const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) +>"../index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) +>"./index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) h(); >h : Symbol(h, Decl(index.js, 1, 8)) @@ -47,9 +49,11 @@ export async function h() { const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) +>"./index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) +>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) f(); >f : Symbol(f, Decl(index.js, 3, 8)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).symbols.diff index 7b11085f82..a3b63b69c9 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesAllowJsSynchronousCallErrors(module=nodenext).symbols.diff @@ -5,22 +5,26 @@ const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) ->"../index.js" : Symbol(mod, Decl(index.js, 0, 0)) ++>"../index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) ->"./index.js" : Symbol(mod2, Decl(index.js, 0, 0)) ++>"./index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) h(); >h : Symbol(h, Decl(index.js, 1, 8)) -@@= skipped -29, +27 lines =@@ +@@= skipped -29, +29 lines =@@ const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.js, 6, 9)) ->"./index.js" : Symbol(mod, Decl(index.js, 0, 0)) ++>"./index.js" : Symbol("index", Decl(index.js, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.js, 7, 9)) ->"./subfolder/index.js" : Symbol(mod2, Decl(index.js, 0, 0)) ++>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.js, 0, 0)) f(); >f : Symbol(f, Decl(index.js, 3, 8)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols index 47172339d9..653778e00a 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols @@ -16,67 +16,85 @@ export {}; // esm format file export const a = await import("package/cjs"); >a : Symbol(a, Decl(other.ts, 1, 12)) +>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) export const b = await import("package/mjs"); >b : Symbol(b, Decl(other.ts, 2, 12)) +>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) export const c = await import("package"); >c : Symbol(c, Decl(other.ts, 3, 12)) +>"package" : Symbol("index", Decl(index.ts, 0, 0)) export const f = await import("inner"); >f : Symbol(f, Decl(other.ts, 4, 12)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) === other2.ts === // esm format file export const d = await import("inner/cjs"); >d : Symbol(d, Decl(other2.ts, 1, 12)) +>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) export const e = await import("inner/mjs"); >e : Symbol(e, Decl(other2.ts, 2, 12)) +>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) === other.mts === // esm format file export const a = await import("package/cjs"); >a : Symbol(a, Decl(other.mts, 1, 12)) +>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) export const b = await import("package/mjs"); >b : Symbol(b, Decl(other.mts, 2, 12)) +>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) export const c = await import("package"); >c : Symbol(c, Decl(other.mts, 3, 12)) +>"package" : Symbol("index", Decl(index.ts, 0, 0)) export const f = await import("inner"); >f : Symbol(f, Decl(other.mts, 4, 12)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) === other2.mts === // esm format file export const d = await import("inner/cjs"); >d : Symbol(d, Decl(other2.mts, 1, 12)) +>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) export const e = await import("inner/mjs"); >e : Symbol(e, Decl(other2.mts, 2, 12)) +>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) === other.cts === // cjs format file, no TLA export const a = import("package/cjs"); >a : Symbol(a, Decl(other.cts, 1, 12)) +>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) export const b = import("package/mjs"); >b : Symbol(b, Decl(other.cts, 2, 12)) +>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) export const c = import("package"); >c : Symbol(c, Decl(other.cts, 3, 12)) +>"package" : Symbol("index", Decl(index.ts, 0, 0)) export const f = import("inner"); >f : Symbol(f, Decl(other.cts, 4, 12)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) === other2.cts === // cjs format file, no TLA export const d = import("inner/cjs"); >d : Symbol(d, Decl(other2.cts, 1, 12)) +>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) export const e = import("inner/mjs"); >e : Symbol(e, Decl(other2.cts, 2, 12)) +>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) === node_modules/inner/index.d.ts === // cjs format file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols.diff deleted file mode 100644 index 0d83fb0620..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols.diff +++ /dev/null @@ -1,88 +0,0 @@ ---- old.nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols -+++ new.nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=node18).symbols -@@= skipped -15, +15 lines =@@ - // esm format file - export const a = await import("package/cjs"); - >a : Symbol(a, Decl(other.ts, 1, 12)) -->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) - - export const b = await import("package/mjs"); - >b : Symbol(b, Decl(other.ts, 2, 12)) -->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) - - export const c = await import("package"); - >c : Symbol(c, Decl(other.ts, 3, 12)) -->"package" : Symbol("index", Decl(index.ts, 0, 0)) - - export const f = await import("inner"); - >f : Symbol(f, Decl(other.ts, 4, 12)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - - === other2.ts === - // esm format file - export const d = await import("inner/cjs"); - >d : Symbol(d, Decl(other2.ts, 1, 12)) -->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) - - export const e = await import("inner/mjs"); - >e : Symbol(e, Decl(other2.ts, 2, 12)) -->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) - - === other.mts === - // esm format file - export const a = await import("package/cjs"); - >a : Symbol(a, Decl(other.mts, 1, 12)) -->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) - - export const b = await import("package/mjs"); - >b : Symbol(b, Decl(other.mts, 2, 12)) -->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) - - export const c = await import("package"); - >c : Symbol(c, Decl(other.mts, 3, 12)) -->"package" : Symbol("index", Decl(index.ts, 0, 0)) - - export const f = await import("inner"); - >f : Symbol(f, Decl(other.mts, 4, 12)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - - === other2.mts === - // esm format file - export const d = await import("inner/cjs"); - >d : Symbol(d, Decl(other2.mts, 1, 12)) -->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) - - export const e = await import("inner/mjs"); - >e : Symbol(e, Decl(other2.mts, 2, 12)) -->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) - - === other.cts === - // cjs format file, no TLA - export const a = import("package/cjs"); - >a : Symbol(a, Decl(other.cts, 1, 12)) -->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) - - export const b = import("package/mjs"); - >b : Symbol(b, Decl(other.cts, 2, 12)) -->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) - - export const c = import("package"); - >c : Symbol(c, Decl(other.cts, 3, 12)) -->"package" : Symbol("index", Decl(index.ts, 0, 0)) - - export const f = import("inner"); - >f : Symbol(f, Decl(other.cts, 4, 12)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - - === other2.cts === - // cjs format file, no TLA - export const d = import("inner/cjs"); - >d : Symbol(d, Decl(other2.cts, 1, 12)) -->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) - - export const e = import("inner/mjs"); - >e : Symbol(e, Decl(other2.cts, 2, 12)) -->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) - - === node_modules/inner/index.d.ts === - // cjs format file \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols index 47172339d9..653778e00a 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols @@ -16,67 +16,85 @@ export {}; // esm format file export const a = await import("package/cjs"); >a : Symbol(a, Decl(other.ts, 1, 12)) +>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) export const b = await import("package/mjs"); >b : Symbol(b, Decl(other.ts, 2, 12)) +>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) export const c = await import("package"); >c : Symbol(c, Decl(other.ts, 3, 12)) +>"package" : Symbol("index", Decl(index.ts, 0, 0)) export const f = await import("inner"); >f : Symbol(f, Decl(other.ts, 4, 12)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) === other2.ts === // esm format file export const d = await import("inner/cjs"); >d : Symbol(d, Decl(other2.ts, 1, 12)) +>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) export const e = await import("inner/mjs"); >e : Symbol(e, Decl(other2.ts, 2, 12)) +>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) === other.mts === // esm format file export const a = await import("package/cjs"); >a : Symbol(a, Decl(other.mts, 1, 12)) +>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) export const b = await import("package/mjs"); >b : Symbol(b, Decl(other.mts, 2, 12)) +>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) export const c = await import("package"); >c : Symbol(c, Decl(other.mts, 3, 12)) +>"package" : Symbol("index", Decl(index.ts, 0, 0)) export const f = await import("inner"); >f : Symbol(f, Decl(other.mts, 4, 12)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) === other2.mts === // esm format file export const d = await import("inner/cjs"); >d : Symbol(d, Decl(other2.mts, 1, 12)) +>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) export const e = await import("inner/mjs"); >e : Symbol(e, Decl(other2.mts, 2, 12)) +>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) === other.cts === // cjs format file, no TLA export const a = import("package/cjs"); >a : Symbol(a, Decl(other.cts, 1, 12)) +>"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) export const b = import("package/mjs"); >b : Symbol(b, Decl(other.cts, 2, 12)) +>"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) export const c = import("package"); >c : Symbol(c, Decl(other.cts, 3, 12)) +>"package" : Symbol("index", Decl(index.ts, 0, 0)) export const f = import("inner"); >f : Symbol(f, Decl(other.cts, 4, 12)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) === other2.cts === // cjs format file, no TLA export const d = import("inner/cjs"); >d : Symbol(d, Decl(other2.cts, 1, 12)) +>"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) export const e = import("inner/mjs"); >e : Symbol(e, Decl(other2.cts, 2, 12)) +>"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) === node_modules/inner/index.d.ts === // cjs format file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols.diff deleted file mode 100644 index faadd0da56..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols.diff +++ /dev/null @@ -1,88 +0,0 @@ ---- old.nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols -+++ new.nodeModulesDeclarationEmitDynamicImportWithPackageExports(module=nodenext).symbols -@@= skipped -15, +15 lines =@@ - // esm format file - export const a = await import("package/cjs"); - >a : Symbol(a, Decl(other.ts, 1, 12)) -->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) - - export const b = await import("package/mjs"); - >b : Symbol(b, Decl(other.ts, 2, 12)) -->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) - - export const c = await import("package"); - >c : Symbol(c, Decl(other.ts, 3, 12)) -->"package" : Symbol("index", Decl(index.ts, 0, 0)) - - export const f = await import("inner"); - >f : Symbol(f, Decl(other.ts, 4, 12)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - - === other2.ts === - // esm format file - export const d = await import("inner/cjs"); - >d : Symbol(d, Decl(other2.ts, 1, 12)) -->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) - - export const e = await import("inner/mjs"); - >e : Symbol(e, Decl(other2.ts, 2, 12)) -->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) - - === other.mts === - // esm format file - export const a = await import("package/cjs"); - >a : Symbol(a, Decl(other.mts, 1, 12)) -->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) - - export const b = await import("package/mjs"); - >b : Symbol(b, Decl(other.mts, 2, 12)) -->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) - - export const c = await import("package"); - >c : Symbol(c, Decl(other.mts, 3, 12)) -->"package" : Symbol("index", Decl(index.ts, 0, 0)) - - export const f = await import("inner"); - >f : Symbol(f, Decl(other.mts, 4, 12)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - - === other2.mts === - // esm format file - export const d = await import("inner/cjs"); - >d : Symbol(d, Decl(other2.mts, 1, 12)) -->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) - - export const e = await import("inner/mjs"); - >e : Symbol(e, Decl(other2.mts, 2, 12)) -->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) - - === other.cts === - // cjs format file, no TLA - export const a = import("package/cjs"); - >a : Symbol(a, Decl(other.cts, 1, 12)) -->"package/cjs" : Symbol("index", Decl(index.cts, 0, 0)) - - export const b = import("package/mjs"); - >b : Symbol(b, Decl(other.cts, 2, 12)) -->"package/mjs" : Symbol("index", Decl(index.mts, 0, 0)) - - export const c = import("package"); - >c : Symbol(c, Decl(other.cts, 3, 12)) -->"package" : Symbol("index", Decl(index.ts, 0, 0)) - - export const f = import("inner"); - >f : Symbol(f, Decl(other.cts, 4, 12)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - - === other2.cts === - // cjs format file, no TLA - export const d = import("inner/cjs"); - >d : Symbol(d, Decl(other2.cts, 1, 12)) -->"inner/cjs" : Symbol("node_modules/inner/index", Decl(index.d.cts, 0, 0)) - - export const e = import("inner/mjs"); - >e : Symbol(e, Decl(other2.cts, 2, 12)) -->"inner/mjs" : Symbol("node_modules/inner/index", Decl(index.d.mts, 0, 0)) - - === node_modules/inner/index.d.ts === - // cjs format file \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node16).symbols index ebd881fada..ba5c96124d 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node16).symbols @@ -7,6 +7,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === index.ts === // esm format file @@ -15,6 +16,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === types.d.ts === declare module "fs"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node16).symbols.diff deleted file mode 100644 index 9a3499aec3..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node16).symbols.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.nodeModulesDynamicImport(module=node16).symbols -+++ new.nodeModulesDynamicImport(module=node16).symbols -@@= skipped -6, +6 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === index.ts === - // esm format file -@@= skipped -9, +8 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === types.d.ts === - declare module "fs"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node18).symbols index ebd881fada..ba5c96124d 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node18).symbols @@ -7,6 +7,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === index.ts === // esm format file @@ -15,6 +16,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === types.d.ts === declare module "fs"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node18).symbols.diff deleted file mode 100644 index 19aadbb6b9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=node18).symbols.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.nodeModulesDynamicImport(module=node18).symbols -+++ new.nodeModulesDynamicImport(module=node18).symbols -@@= skipped -6, +6 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === index.ts === - // esm format file -@@= skipped -9, +8 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === types.d.ts === - declare module "fs"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=nodenext).symbols index ebd881fada..ba5c96124d 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=nodenext).symbols @@ -7,6 +7,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === index.ts === // esm format file @@ -15,6 +16,7 @@ export async function main() { const { readFile } = await import("fs"); >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) +>"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) } === types.d.ts === declare module "fs"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=nodenext).symbols.diff deleted file mode 100644 index 1f1de9a992..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesDynamicImport(module=nodenext).symbols.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.nodeModulesDynamicImport(module=nodenext).symbols -+++ new.nodeModulesDynamicImport(module=nodenext).symbols -@@= skipped -6, +6 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === index.ts === - // esm format file -@@= skipped -9, +8 lines =@@ - - const { readFile } = await import("fs"); - >readFile : Symbol(readFile, Decl(index.ts, 2, 11)) -->"fs" : Symbol("fs", Decl(types.d.ts, 0, 0)) - } - === types.d.ts === - declare module "fs"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols index 5da67765f9..91fce59692 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols.diff deleted file mode 100644 index 30d7f26cab..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols -+++ new.nodeModulesExportsBlocksSpecifierResolution(module=node16).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols index 5da67765f9..91fce59692 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols.diff deleted file mode 100644 index b328b59351..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols -+++ new.nodeModulesExportsBlocksSpecifierResolution(module=node18).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols index 5da67765f9..91fce59692 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols.diff deleted file mode 100644 index 59e462c938..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols -+++ new.nodeModulesExportsBlocksSpecifierResolution(module=nodenext).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).symbols index a8d63fef31..1827233096 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.ts, 0, 0)) >x : Symbol(x, Decl(index.ts, 1, 8)) import {a as a2} from "package"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).symbols.diff deleted file mode 100644 index 665606b2f9..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node16).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSourceTs(module=node16).symbols -+++ new.nodeModulesExportsSourceTs(module=node16).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.ts, 0, 0)) - >x : Symbol(x, Decl(index.ts, 1, 8)) - - import {a as a2} from "package"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).symbols index a8d63fef31..1827233096 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.ts, 0, 0)) >x : Symbol(x, Decl(index.ts, 1, 8)) import {a as a2} from "package"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).symbols.diff deleted file mode 100644 index cc9ab78cba..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=node18).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSourceTs(module=node18).symbols -+++ new.nodeModulesExportsSourceTs(module=node18).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.ts, 0, 0)) - >x : Symbol(x, Decl(index.ts, 1, 8)) - - import {a as a2} from "package"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).symbols index a8d63fef31..1827233096 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.ts, 0, 0)) >x : Symbol(x, Decl(index.ts, 1, 8)) import {a as a2} from "package"; diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).symbols.diff deleted file mode 100644 index 091267afe1..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSourceTs(module=nodenext).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSourceTs(module=nodenext).symbols -+++ new.nodeModulesExportsSourceTs(module=nodenext).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.ts, 0, 0)) - >x : Symbol(x, Decl(index.ts, 1, 8)) - - import {a as a2} from "package"; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols index 37a6690d1b..d429eab9b4 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other.js"; // should fail export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols.diff deleted file mode 100644 index 4119a08cd7..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols -+++ new.nodeModulesExportsSpecifierGenerationConditions(module=node16).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols index 37a6690d1b..d429eab9b4 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other.js"; // should fail export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols.diff deleted file mode 100644 index 3fa64bbb49..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols -+++ new.nodeModulesExportsSpecifierGenerationConditions(module=node18).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols index 37a6690d1b..d429eab9b4 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other.js"; // should fail export const a = (await import("inner")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols.diff deleted file mode 100644 index 9ef3dcffbd..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols -+++ new.nodeModulesExportsSpecifierGenerationConditions(module=nodenext).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols index a04c7151ec..6fd6d1a29c 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner/index.js")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols.diff deleted file mode 100644 index 9c2d5640d6..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols -+++ new.nodeModulesExportsSpecifierGenerationDirectory(module=node16).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner/index.js")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols index a04c7151ec..6fd6d1a29c 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner/index.js")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols.diff deleted file mode 100644 index 4fa45c0adb..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols -+++ new.nodeModulesExportsSpecifierGenerationDirectory(module=node18).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner/index.js")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols index a04c7151ec..6fd6d1a29c 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner/index.js")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols.diff deleted file mode 100644 index 76cc5f5faf..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols -+++ new.nodeModulesExportsSpecifierGenerationDirectory(module=nodenext).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner/index.js")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols index 76453f648e..7429733b3c 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner/index.js")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols.diff deleted file mode 100644 index 3a6ded263b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols -+++ new.nodeModulesExportsSpecifierGenerationPattern(module=node16).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner/index.js")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols index 76453f648e..7429733b3c 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner/index.js")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols.diff deleted file mode 100644 index a04c9a3000..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols -+++ new.nodeModulesExportsSpecifierGenerationPattern(module=node18).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner/index.js")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols index 76453f648e..7429733b3c 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols @@ -8,6 +8,7 @@ import { Thing } from "inner/other"; export const a = (await import("inner/index.js")).x(); >a : Symbol(a, Decl(index.ts, 2, 12)) >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) +>"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) >x : Symbol(x, Decl(index.d.ts, 1, 8)) === node_modules/inner/index.d.ts === diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols.diff deleted file mode 100644 index f3207cbf8b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols -+++ new.nodeModulesExportsSpecifierGenerationPattern(module=nodenext).symbols -@@= skipped -7, +7 lines =@@ - export const a = (await import("inner/index.js")).x(); - >a : Symbol(a, Decl(index.ts, 2, 12)) - >(await import("inner/index.js")).x : Symbol(x, Decl(index.d.ts, 1, 8)) -->"inner/index.js" : Symbol("node_modules/inner/index", Decl(index.d.ts, 0, 0)) - >x : Symbol(x, Decl(index.d.ts, 1, 8)) - - === node_modules/inner/index.d.ts === \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node16).symbols index 6206729f45..881cb77121 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node16).symbols @@ -10,6 +10,7 @@ import json from "./package.json" assert { type: "json" }; // should error, cjs const json2 = import("./package.json", { assert: { type: "json" } }); // should be fine >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) +>"./package.json" : Symbol("package", Decl(package.json, 0, 0)) >assert : Symbol(assert, Decl(otherc.cts, 1, 40)) >type : Symbol(type, Decl(otherc.cts, 1, 50)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node16).symbols.diff deleted file mode 100644 index 1257707fe5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node16).symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.nodeModulesImportAssertions(module=node16).symbols -+++ new.nodeModulesImportAssertions(module=node16).symbols -@@= skipped -9, +9 lines =@@ - - const json2 = import("./package.json", { assert: { type: "json" } }); // should be fine - >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) -->"./package.json" : Symbol("package", Decl(package.json, 0, 0)) - >assert : Symbol(assert, Decl(otherc.cts, 1, 40)) - >type : Symbol(type, Decl(otherc.cts, 1, 50)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node18).symbols index 6206729f45..881cb77121 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node18).symbols @@ -10,6 +10,7 @@ import json from "./package.json" assert { type: "json" }; // should error, cjs const json2 = import("./package.json", { assert: { type: "json" } }); // should be fine >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) +>"./package.json" : Symbol("package", Decl(package.json, 0, 0)) >assert : Symbol(assert, Decl(otherc.cts, 1, 40)) >type : Symbol(type, Decl(otherc.cts, 1, 50)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node18).symbols.diff deleted file mode 100644 index 507600a31b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=node18).symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.nodeModulesImportAssertions(module=node18).symbols -+++ new.nodeModulesImportAssertions(module=node18).symbols -@@= skipped -9, +9 lines =@@ - - const json2 = import("./package.json", { assert: { type: "json" } }); // should be fine - >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) -->"./package.json" : Symbol("package", Decl(package.json, 0, 0)) - >assert : Symbol(assert, Decl(otherc.cts, 1, 40)) - >type : Symbol(type, Decl(otherc.cts, 1, 50)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=nodenext).symbols index 6206729f45..881cb77121 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=nodenext).symbols @@ -10,6 +10,7 @@ import json from "./package.json" assert { type: "json" }; // should error, cjs const json2 = import("./package.json", { assert: { type: "json" } }); // should be fine >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) +>"./package.json" : Symbol("package", Decl(package.json, 0, 0)) >assert : Symbol(assert, Decl(otherc.cts, 1, 40)) >type : Symbol(type, Decl(otherc.cts, 1, 50)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=nodenext).symbols.diff deleted file mode 100644 index e641fb4d9d..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAssertions(module=nodenext).symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.nodeModulesImportAssertions(module=nodenext).symbols -+++ new.nodeModulesImportAssertions(module=nodenext).symbols -@@= skipped -9, +9 lines =@@ - - const json2 = import("./package.json", { assert: { type: "json" } }); // should be fine - >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) -->"./package.json" : Symbol("package", Decl(package.json, 0, 0)) - >assert : Symbol(assert, Decl(otherc.cts, 1, 40)) - >type : Symbol(type, Decl(otherc.cts, 1, 50)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node16).symbols index 2c2be75008..6666db3e5b 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node16).symbols @@ -10,6 +10,7 @@ import json from "./package.json" with { type: "json" }; // should error, cjs mo const json2 = import("./package.json", { with: { type: "json" } }); // should be fine >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) +>"./package.json" : Symbol("package", Decl(package.json, 0, 0)) >with : Symbol(with, Decl(otherc.cts, 1, 40)) >type : Symbol(type, Decl(otherc.cts, 1, 48)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node16).symbols.diff deleted file mode 100644 index 14ffdd3fe5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node16).symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.nodeModulesImportAttributes(module=node16).symbols -+++ new.nodeModulesImportAttributes(module=node16).symbols -@@= skipped -9, +9 lines =@@ - - const json2 = import("./package.json", { with: { type: "json" } }); // should be fine - >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) -->"./package.json" : Symbol("package", Decl(package.json, 0, 0)) - >with : Symbol(with, Decl(otherc.cts, 1, 40)) - >type : Symbol(type, Decl(otherc.cts, 1, 48)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node18).symbols index 2c2be75008..6666db3e5b 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node18).symbols @@ -10,6 +10,7 @@ import json from "./package.json" with { type: "json" }; // should error, cjs mo const json2 = import("./package.json", { with: { type: "json" } }); // should be fine >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) +>"./package.json" : Symbol("package", Decl(package.json, 0, 0)) >with : Symbol(with, Decl(otherc.cts, 1, 40)) >type : Symbol(type, Decl(otherc.cts, 1, 48)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node18).symbols.diff deleted file mode 100644 index 64121408b5..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=node18).symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.nodeModulesImportAttributes(module=node18).symbols -+++ new.nodeModulesImportAttributes(module=node18).symbols -@@= skipped -9, +9 lines =@@ - - const json2 = import("./package.json", { with: { type: "json" } }); // should be fine - >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) -->"./package.json" : Symbol("package", Decl(package.json, 0, 0)) - >with : Symbol(with, Decl(otherc.cts, 1, 40)) - >type : Symbol(type, Decl(otherc.cts, 1, 48)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=nodenext).symbols index 2c2be75008..6666db3e5b 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=nodenext).symbols @@ -10,6 +10,7 @@ import json from "./package.json" with { type: "json" }; // should error, cjs mo const json2 = import("./package.json", { with: { type: "json" } }); // should be fine >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) +>"./package.json" : Symbol("package", Decl(package.json, 0, 0)) >with : Symbol(with, Decl(otherc.cts, 1, 40)) >type : Symbol(type, Decl(otherc.cts, 1, 48)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=nodenext).symbols.diff deleted file mode 100644 index b26ae29951..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributes(module=nodenext).symbols.diff +++ /dev/null @@ -1,9 +0,0 @@ ---- old.nodeModulesImportAttributes(module=nodenext).symbols -+++ new.nodeModulesImportAttributes(module=nodenext).symbols -@@= skipped -9, +9 lines =@@ - - const json2 = import("./package.json", { with: { type: "json" } }); // should be fine - >json2 : Symbol(json2, Decl(otherc.cts, 1, 5)) -->"./package.json" : Symbol("package", Decl(package.json, 0, 0)) - >with : Symbol(with, Decl(otherc.cts, 1, 40)) - >type : Symbol(type, Decl(otherc.cts, 1, 48)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols index 68bfcacf41..8a23a85dd4 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols @@ -33,6 +33,7 @@ export type LocalInterface = & import("pkg", {"resolution-mode": "require"}).RequireInterface & import("pkg", {"resolution-mode": "import"}).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); @@ -67,6 +68,7 @@ export type LocalInterface = >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); @@ -97,6 +99,7 @@ export type LocalInterface = >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 59)) & import("pkg", Attribute2).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >Attribute2 : Symbol(Attribute2, Decl(other4.ts, 9, 46)) export const a = (null as any as import("pkg", Attribute1).RequireInterface); diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols.diff deleted file mode 100644 index 36cde83671..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols -+++ new.nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node16).symbols -@@= skipped -32, +32 lines =@@ - - & import("pkg", {"resolution-mode": "require"}).RequireInterface - & import("pkg", {"resolution-mode": "import"}).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) - - export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); -@@= skipped -35, +34 lines =@@ - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) - - & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) - - export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); -@@= skipped -31, +30 lines =@@ - >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 59)) - - & import("pkg", Attribute2).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >Attribute2 : Symbol(Attribute2, Decl(other4.ts, 9, 46)) - - export const a = (null as any as import("pkg", Attribute1).RequireInterface); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols index 68bfcacf41..8a23a85dd4 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols @@ -33,6 +33,7 @@ export type LocalInterface = & import("pkg", {"resolution-mode": "require"}).RequireInterface & import("pkg", {"resolution-mode": "import"}).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); @@ -67,6 +68,7 @@ export type LocalInterface = >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); @@ -97,6 +99,7 @@ export type LocalInterface = >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 59)) & import("pkg", Attribute2).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >Attribute2 : Symbol(Attribute2, Decl(other4.ts, 9, 46)) export const a = (null as any as import("pkg", Attribute1).RequireInterface); diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols.diff deleted file mode 100644 index 8892befd76..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols -+++ new.nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=node18).symbols -@@= skipped -32, +32 lines =@@ - - & import("pkg", {"resolution-mode": "require"}).RequireInterface - & import("pkg", {"resolution-mode": "import"}).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) - - export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); -@@= skipped -35, +34 lines =@@ - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) - - & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) - - export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); -@@= skipped -31, +30 lines =@@ - >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 59)) - - & import("pkg", Attribute2).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >Attribute2 : Symbol(Attribute2, Decl(other4.ts, 9, 46)) - - export const a = (null as any as import("pkg", Attribute1).RequireInterface); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols index 68bfcacf41..8a23a85dd4 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols @@ -33,6 +33,7 @@ export type LocalInterface = & import("pkg", {"resolution-mode": "require"}).RequireInterface & import("pkg", {"resolution-mode": "import"}).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); @@ -67,6 +68,7 @@ export type LocalInterface = >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); @@ -97,6 +99,7 @@ export type LocalInterface = >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 59)) & import("pkg", Attribute2).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >Attribute2 : Symbol(Attribute2, Decl(other4.ts, 9, 46)) export const a = (null as any as import("pkg", Attribute1).RequireInterface); diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols.diff deleted file mode 100644 index 732c0843bc..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols -+++ new.nodeModulesImportAttributesTypeModeDeclarationEmitErrors(module=nodenext).symbols -@@= skipped -32, +32 lines =@@ - - & import("pkg", {"resolution-mode": "require"}).RequireInterface - & import("pkg", {"resolution-mode": "import"}).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) - - export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); -@@= skipped -35, +34 lines =@@ - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) - - & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) - - export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); -@@= skipped -31, +30 lines =@@ - >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 59)) - - & import("pkg", Attribute2).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >Attribute2 : Symbol(Attribute2, Decl(other4.ts, 9, 46)) - - export const a = (null as any as import("pkg", Attribute1).RequireInterface); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols index 0db2789686..ea0f4216cd 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols @@ -33,6 +33,7 @@ export type LocalInterface = & import("pkg", {"resolution-mode": "require"}).RequireInterface & import("pkg", {"resolution-mode": "import"}).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); @@ -67,6 +68,7 @@ export type LocalInterface = >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); @@ -97,6 +99,7 @@ export type LocalInterface = >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 57)) & import("pkg", Asserts2).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >Asserts2 : Symbol(Asserts2, Decl(other4.ts, 9, 46)) export const a = (null as any as import("pkg", Asserts1).RequireInterface); diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols.diff deleted file mode 100644 index 9fdd7aabc2..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols -+++ new.nodeModulesImportTypeModeDeclarationEmitErrors1(module=node16).symbols -@@= skipped -32, +32 lines =@@ - - & import("pkg", {"resolution-mode": "require"}).RequireInterface - & import("pkg", {"resolution-mode": "import"}).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) - - export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); -@@= skipped -35, +34 lines =@@ - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) - - & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) - - export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); -@@= skipped -31, +30 lines =@@ - >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 57)) - - & import("pkg", Asserts2).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >Asserts2 : Symbol(Asserts2, Decl(other4.ts, 9, 46)) - - export const a = (null as any as import("pkg", Asserts1).RequireInterface); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols index 0db2789686..ea0f4216cd 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols @@ -33,6 +33,7 @@ export type LocalInterface = & import("pkg", {"resolution-mode": "require"}).RequireInterface & import("pkg", {"resolution-mode": "import"}).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); @@ -67,6 +68,7 @@ export type LocalInterface = >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); @@ -97,6 +99,7 @@ export type LocalInterface = >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 57)) & import("pkg", Asserts2).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >Asserts2 : Symbol(Asserts2, Decl(other4.ts, 9, 46)) export const a = (null as any as import("pkg", Asserts1).RequireInterface); diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols.diff deleted file mode 100644 index d7f7aea63b..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols -+++ new.nodeModulesImportTypeModeDeclarationEmitErrors1(module=node18).symbols -@@= skipped -32, +32 lines =@@ - - & import("pkg", {"resolution-mode": "require"}).RequireInterface - & import("pkg", {"resolution-mode": "import"}).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) - - export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); -@@= skipped -35, +34 lines =@@ - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) - - & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) - - export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); -@@= skipped -31, +30 lines =@@ - >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 57)) - - & import("pkg", Asserts2).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >Asserts2 : Symbol(Asserts2, Decl(other4.ts, 9, 46)) - - export const a = (null as any as import("pkg", Asserts1).RequireInterface); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols index 0db2789686..ea0f4216cd 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols @@ -33,6 +33,7 @@ export type LocalInterface = & import("pkg", {"resolution-mode": "require"}).RequireInterface & import("pkg", {"resolution-mode": "import"}).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); @@ -67,6 +68,7 @@ export type LocalInterface = >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); @@ -97,6 +99,7 @@ export type LocalInterface = >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 57)) & import("pkg", Asserts2).ImportInterface; +>"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) >Asserts2 : Symbol(Asserts2, Decl(other4.ts, 9, 46)) export const a = (null as any as import("pkg", Asserts1).RequireInterface); diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols.diff deleted file mode 100644 index bcff2f2a6c..0000000000 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- old.nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols -+++ new.nodeModulesImportTypeModeDeclarationEmitErrors1(module=nodenext).symbols -@@= skipped -32, +32 lines =@@ - - & import("pkg", {"resolution-mode": "require"}).RequireInterface - & import("pkg", {"resolution-mode": "import"}).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other.ts, 3, 21)) - - export const a = (null as any as import("pkg", {"resolution-mode": "require"}).RequireInterface); -@@= skipped -35, +34 lines =@@ - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 2, 23)) - - & import("pkg", [ {"resolution-mode": "import"} ]).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >"resolution-mode" : Symbol("resolution-mode", Decl(other3.ts, 3, 23)) - - export const a = (null as any as import("pkg", [ {"resolution-mode": "require"} ]).RequireInterface); -@@= skipped -31, +30 lines =@@ - >RequireInterface : Symbol(RequireInterface, Decl(other4.ts, 8, 57)) - - & import("pkg", Asserts2).ImportInterface; -->"pkg" : Symbol("/node_modules/pkg/import", Decl(import.d.ts, 0, 0)) - >Asserts2 : Symbol(Asserts2, Decl(other4.ts, 9, 46)) - - export const a = (null as any as import("pkg", Asserts1).RequireInterface); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node16).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node16).symbols index ffed538b38..6f24f73937 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node16).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node16).symbols @@ -20,9 +20,11 @@ export async function f() { const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) +>"../index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) +>"./index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) h(); >h : Symbol(h, Decl(index.ts, 1, 8)) @@ -47,9 +49,11 @@ export async function h() { const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) +>"./index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) +>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) f(); >f : Symbol(f, Decl(index.ts, 3, 8)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node16).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node16).symbols.diff index 85686f1c5a..7b01659a7c 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node16).symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node16).symbols.diff @@ -5,22 +5,26 @@ const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) ->"../index.js" : Symbol(mod, Decl(index.ts, 0, 0)) ++>"../index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) ->"./index.js" : Symbol(mod2, Decl(index.ts, 0, 0)) ++>"./index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) h(); >h : Symbol(h, Decl(index.ts, 1, 8)) -@@= skipped -29, +27 lines =@@ +@@= skipped -29, +29 lines =@@ const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) ->"./index.js" : Symbol(mod, Decl(index.ts, 0, 0)) ++>"./index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) ->"./subfolder/index.js" : Symbol(mod2, Decl(index.ts, 0, 0)) ++>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) f(); >f : Symbol(f, Decl(index.ts, 3, 8)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node18).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node18).symbols index ffed538b38..6f24f73937 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node18).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node18).symbols @@ -20,9 +20,11 @@ export async function f() { const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) +>"../index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) +>"./index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) h(); >h : Symbol(h, Decl(index.ts, 1, 8)) @@ -47,9 +49,11 @@ export async function h() { const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) +>"./index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) +>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) f(); >f : Symbol(f, Decl(index.ts, 3, 8)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node18).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node18).symbols.diff index 6267260be5..a0d8b18d28 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node18).symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=node18).symbols.diff @@ -5,22 +5,26 @@ const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) ->"../index.js" : Symbol(mod, Decl(index.ts, 0, 0)) ++>"../index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) ->"./index.js" : Symbol(mod2, Decl(index.ts, 0, 0)) ++>"./index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) h(); >h : Symbol(h, Decl(index.ts, 1, 8)) -@@= skipped -29, +27 lines =@@ +@@= skipped -29, +29 lines =@@ const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) ->"./index.js" : Symbol(mod, Decl(index.ts, 0, 0)) ++>"./index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) ->"./subfolder/index.js" : Symbol(mod2, Decl(index.ts, 0, 0)) ++>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) f(); >f : Symbol(f, Decl(index.ts, 3, 8)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=nodenext).symbols b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=nodenext).symbols index ffed538b38..6f24f73937 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=nodenext).symbols +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=nodenext).symbols @@ -20,9 +20,11 @@ export async function f() { const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) +>"../index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) +>"./index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) h(); >h : Symbol(h, Decl(index.ts, 1, 8)) @@ -47,9 +49,11 @@ export async function h() { const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) +>"./index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) +>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) f(); >f : Symbol(f, Decl(index.ts, 3, 8)) diff --git a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=nodenext).symbols.diff b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=nodenext).symbols.diff index 24510aaff1..8d20d2850e 100644 --- a/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=nodenext).symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/nodeModulesSynchronousCallErrors(module=nodenext).symbols.diff @@ -5,22 +5,26 @@ const mod3 = await import ("../index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) ->"../index.js" : Symbol(mod, Decl(index.ts, 0, 0)) ++>"../index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) ->"./index.js" : Symbol(mod2, Decl(index.ts, 0, 0)) ++>"./index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) h(); >h : Symbol(h, Decl(index.ts, 1, 8)) -@@= skipped -29, +27 lines =@@ +@@= skipped -29, +29 lines =@@ const mod3 = await import ("./index.js"); >mod3 : Symbol(mod3, Decl(index.ts, 6, 9)) ->"./index.js" : Symbol(mod, Decl(index.ts, 0, 0)) ++>"./index.js" : Symbol("index", Decl(index.ts, 0, 0)) const mod4 = await import ("./subfolder/index.js"); >mod4 : Symbol(mod4, Decl(index.ts, 7, 9)) ->"./subfolder/index.js" : Symbol(mod2, Decl(index.ts, 0, 0)) ++>"./subfolder/index.js" : Symbol("subfolder/index", Decl(index.ts, 0, 0)) f(); >f : Symbol(f, Decl(index.ts, 3, 8)) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols index 17dd0cf9d8..f29e0d0485 100644 --- a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols +++ b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols @@ -36,6 +36,8 @@ import type { funciton as funciton2 } from "./decl"; // ok I guess? >funciton2 : Symbol(funciton2, Decl(main.ts, 3, 13)) import("./decl"); // error +>"./decl" : Symbol("/decl", Decl(decl.d.ts, 0, 0)) + type T = typeof import("./decl"); // ok >T : Symbol(T, Decl(main.ts, 4, 17)) diff --git a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols.diff b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols.diff index 8c5cb30718..23c7dd49db 100644 --- a/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols.diff +++ b/testdata/baselines/reference/submodule/conformance/verbatimModuleSyntaxRestrictionsCJS.symbols.diff @@ -8,8 +8,4 @@ +>funciton : Symbol(funciton, Decl(decl.d.ts, 1, 20)) >funciton2 : Symbol(funciton2, Decl(main.ts, 3, 13)) - import("./decl"); // error -->"./decl" : Symbol("/decl", Decl(decl.d.ts, 0, 0)) -- - type T = typeof import("./decl"); // ok - >T : Symbol(T, Decl(main.ts, 4, 17)) + import("./decl"); // error \ No newline at end of file diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js new file mode 100644 index 0000000000..7b909938d8 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js @@ -0,0 +1,623 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/bar.ts] *new* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); +//// [/home/src/workspaces/project/bundling.ts] *new* +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} +//// [/home/src/workspaces/project/global.d.ts] *new* +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} +//// [/home/src/workspaces/project/index.ts] *new* +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); +//// [/home/src/workspaces/project/lazyIndex.ts] *new* +export { default as bar } from './bar'; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, + "isolatedModules": true, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/obj/bar.d.ts] *new* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + +//// [/home/src/workspaces/project/obj/bundling.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LazyAction = exports.LazyModule = void 0; +class LazyModule { + importCallback; + constructor(importCallback) { + this.importCallback = importCallback; + } +} +exports.LazyModule = LazyModule; +class LazyAction { + constructor(_lazyModule, _getter) { + } +} +exports.LazyAction = LazyAction; + +//// [/home/src/workspaces/project/obj/index.d.ts] *new* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lazyBar = void 0; +const bundling_1 = require("./bundling"); +const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* +export { default as bar } from './bar'; + +//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const bar_1 = require("./bar"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); + +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/bundling.ts +*refresh* /home/src/workspaces/project/global.d.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/bundling.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: () => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3070 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [1]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js new file mode 100644 index 0000000000..d6c921c3f2 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js @@ -0,0 +1,625 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/bar.ts] *new* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); +//// [/home/src/workspaces/project/bundling.ts] *new* +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} +//// [/home/src/workspaces/project/global.d.ts] *new* +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} +//// [/home/src/workspaces/project/index.ts] *new* +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); +//// [/home/src/workspaces/project/lazyIndex.ts] *new* +export { default as bar } from './bar'; +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, + "isolatedModules": false, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/obj/bar.d.ts] *new* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + +//// [/home/src/workspaces/project/obj/bundling.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LazyAction = exports.LazyModule = void 0; +class LazyModule { + importCallback; + constructor(importCallback) { + this.importCallback = importCallback; + } +} +exports.LazyModule = LazyModule; +class LazyAction { + constructor(_lazyModule, _getter) { + } +} +exports.LazyAction = LazyAction; + +//// [/home/src/workspaces/project/obj/index.d.ts] *new* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lazyBar = void 0; +const bundling_1 = require("./bundling"); +const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* +export { default as bar } from './bar'; + +//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const bar_1 = require("./bar"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); + +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/bundling.ts +*refresh* /home/src/workspaces/project/global.d.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/bundling.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: () => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/lazyIndex.js] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3070 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [1]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/lazyIndex.js] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3109 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js new file mode 100644 index 0000000000..bf8bfe4284 --- /dev/null +++ b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js @@ -0,0 +1,998 @@ +currentDirectory::/home/src/workspaces/project +useCaseSensitiveFileNames::true +Input:: +//// [/home/src/workspaces/project/bar.ts] *new* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); +//// [/home/src/workspaces/project/bundling.ts] *new* +export class LazyModule { + constructor(private importCallback: () => Promise) {} +} + +export class LazyAction< + TAction extends (...args: any[]) => any, + TModule +> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { + } +} +//// [/home/src/workspaces/project/global.d.ts] *new* +interface PromiseConstructor { + new (): Promise; +} +declare var Promise: PromiseConstructor; +interface Promise { +} +//// [/home/src/workspaces/project/index.ts] *new* +import { LazyAction, LazyModule } from './bundling'; +const lazyModule = new LazyModule(() => + import('./lazyIndex') +); +export const lazyBar = new LazyAction(lazyModule, m => m.bar); +//// [/home/src/workspaces/project/lazyIndex.ts] *new* +export { default as bar } from './bar';import { default as bar } from './bar'; +bar("hello"); +//// [/home/src/workspaces/project/tsconfig.json] *new* +{ + "compilerOptions": { + "target": "es5", + "declaration": true, + "outDir": "obj", + "incremental": true, + "isolatedModules": true, + }, +} + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* +/// +interface Boolean {} +interface Function {} +interface CallableFunction {} +interface NewableFunction {} +interface IArguments {} +interface Number { toExponential: any; } +interface Object {} +interface RegExp {} +interface String { charAt: any; } +interface Array { length: number; [n: number]: T; } +interface ReadonlyArray {} +interface SymbolConstructor { + (desc?: string | number): symbol; + for(name: string): symbol; + readonly toStringTag: symbol; +} +declare var Symbol: SymbolConstructor; +interface Symbol { + readonly [Symbol.toStringTag]: string; +} +declare const console: { log(msg: any): void; }; +//// [/home/src/workspaces/project/obj/bar.d.ts] *new* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* +export declare class LazyModule { + private importCallback; + constructor(importCallback: () => Promise); +} +export declare class LazyAction any, TModule> { + constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); +} + +//// [/home/src/workspaces/project/obj/bundling.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LazyAction = exports.LazyModule = void 0; +class LazyModule { + importCallback; + constructor(importCallback) { + this.importCallback = importCallback; + } +} +exports.LazyModule = LazyModule; +class LazyAction { + constructor(_lazyModule, _getter) { + } +} +exports.LazyAction = LazyAction; + +//// [/home/src/workspaces/project/obj/index.d.ts] *new* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/index.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.lazyBar = void 0; +const bundling_1 = require("./bundling"); +const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); +exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* +export { default as bar } from './bar'; + +//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const bar_1 = require("./bar"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); +const bar_2 = require("./bar"); +(0, bar_2.default)("hello"); + +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3165 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/tslibs/TS/Lib/lib.d.ts +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/bundling.ts +*refresh* /home/src/workspaces/project/global.d.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(stored at emit) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/bundling.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [0]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +tsgo --b --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +lazyIndex.ts:2:5 - error TS2554: Expected 0 arguments, but got 1. + +2 bar("hello"); +   ~~~~~~~ + + +Found 1 error in lazyIndex.ts:2 + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: () => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"pos":83,"end":90,"code":2554,"category":1,"message":"Expected 0 arguments, but got 1."}]]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../lazyIndex.ts", + [ + { + "pos": 83, + "end": 90, + "code": 2554, + "category": 1, + "message": "Expected 0 arguments, but got 1." + } + ] + ] + ], + "size": 3253 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [1]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(param: string): void { +}); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'obj/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: (param: string) => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar(param) { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", + "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3165 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [2]:: incremental-declaration-changes +//// [/home/src/workspaces/project/bar.ts] *modified* +interface RawAction { + (...args: any[]): Promise | void; +} +interface ActionFactory { + (target: T): T; +} +declare function foo(): ActionFactory; +export default foo()(function foobar(): void { +}); + +tsgo --b --verbose +ExitStatus:: DiagnosticsPresent_OutputsGenerated +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +lazyIndex.ts:2:5 - error TS2554: Expected 0 arguments, but got 1. + +2 bar("hello"); +   ~~~~~~~ + + +Found 1 error in lazyIndex.ts:2 + +//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* +declare const _default: () => void; +export default _default; + +//// [/home/src/workspaces/project/obj/bar.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.default = foo()(function foobar() { +}); + +//// [/home/src/workspaces/project/obj/index.d.ts] *modified* +import { LazyAction } from './bundling'; +export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"pos":83,"end":90,"code":2554,"category":1,"message":"Expected 0 arguments, but got 1."}]]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "semanticDiagnosticsPerFile": [ + [ + "../lazyIndex.ts", + [ + { + "pos": 83, + "end": 90, + "code": 2554, + "category": 1, + "message": "Expected 0 arguments, but got 1." + } + ] + ] + ], + "size": 3253 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/bar.ts +*refresh* /home/src/workspaces/project/lazyIndex.ts +*refresh* /home/src/workspaces/project/index.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/bar.ts +(stored at emit) /home/src/workspaces/project/lazyIndex.ts +(stored at emit) /home/src/workspaces/project/index.ts + + +Edit [3]:: Fix Error +//// [/home/src/workspaces/project/lazyIndex.ts] *modified* +export { default as bar } from './bar';import { default as bar } from './bar'; +bar(); + +tsgo --b --verbose +ExitStatus:: Success +Output:: +[HH:MM:SS AM] Projects in this build: + * tsconfig.json + +[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'obj/tsconfig.tsbuildinfo' indicates that program needs to report errors. + +[HH:MM:SS AM] Building project 'tsconfig.json'... + +//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* +//// [/home/src/workspaces/project/obj/lazyIndex.js] *modified* +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.bar = void 0; +const bar_1 = require("./bar"); +Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); +const bar_2 = require("./bar"); +(0, bar_2.default)(); + +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* +{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} +//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* +{ + "version": "FakeTSVersion", + "root": [ + { + "files": [ + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "original": [ + 2, + 6 + ] + } + ], + "fileNames": [ + "lib.d.ts", + "../bar.ts", + "../bundling.ts", + "../global.d.ts", + "../lazyIndex.ts", + "../index.ts" + ], + "fileInfos": [ + { + "fileName": "lib.d.ts", + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bar.ts", + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", + "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../bundling.ts", + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", + "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../global.d.ts", + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": "CommonJS", + "original": { + "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", + "affectsGlobalScope": true, + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../lazyIndex.ts", + "version": "d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();", + "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", + "impliedNodeFormat": 1 + } + }, + { + "fileName": "../index.ts", + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": "CommonJS", + "original": { + "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", + "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", + "impliedNodeFormat": 1 + } + } + ], + "fileIdsList": [ + [ + "../bundling.ts", + "../lazyIndex.ts" + ], + [ + "../bar.ts" + ] + ], + "options": { + "declaration": true, + "outDir": "./", + "target": 1 + }, + "referencedMap": { + "../index.ts": [ + "../bundling.ts", + "../lazyIndex.ts" + ], + "../lazyIndex.ts": [ + "../bar.ts" + ] + }, + "size": 3117 +} + +tsconfig.json:: +SemanticDiagnostics:: +*refresh* /home/src/workspaces/project/lazyIndex.ts +Signatures:: +(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts From ebe4ca3d481549fcfe9e622c2090a10bf8ecca28 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 14 Aug 2025 16:21:23 -0700 Subject: [PATCH 2/3] Fix failing tests --- internal/fourslash/_scripts/failingTests.txt | 1 + .../fourslash/tests/gen/findAllReferencesDynamicImport1_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/fourslash/_scripts/failingTests.txt b/internal/fourslash/_scripts/failingTests.txt index 2bbbb8f568..e8055c04c5 100644 --- a/internal/fourslash/_scripts/failingTests.txt +++ b/internal/fourslash/_scripts/failingTests.txt @@ -168,6 +168,7 @@ TestDoubleUnderscoreCompletions TestEditJsdocType TestExportDefaultClass TestExportDefaultFunction +TestFindAllReferencesDynamicImport1 TestFindAllReferencesTripleSlash TestFindAllReferencesUmdModuleAsGlobalConst TestFindAllRefsCommonJsRequire diff --git a/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go b/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go index a6637254e1..a3cbb55949 100644 --- a/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go +++ b/internal/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go @@ -9,7 +9,7 @@ import ( func TestFindAllReferencesDynamicImport1(t *testing.T) { t.Parallel() - + t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export function foo() { return "foo"; } From 1115676883c2e03bde97d843d9db9bfc802d3e83 Mon Sep 17 00:00:00 2001 From: Sheetal Nandi Date: Thu, 14 Aug 2025 16:29:56 -0700 Subject: [PATCH 3/3] Not needed baselines --- ...AllReferencesDynamicImport1.baseline.jsonc | 36 - ...-transitive-module-with-isolatedModules.js | 623 ----------- .../inferred-type-from-transitive-module.js | 625 ----------- ...hange-in-signature-with-isolatedModules.js | 998 ------------------ 4 files changed, 2282 deletions(-) delete mode 100644 testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport1.baseline.jsonc delete mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js delete mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js delete mode 100644 testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js diff --git a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport1.baseline.jsonc b/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport1.baseline.jsonc deleted file mode 100644 index 4b51c9cb53..0000000000 --- a/testdata/baselines/reference/fourslash/findAllRef/FindAllReferencesDynamicImport1.baseline.jsonc +++ /dev/null @@ -1,36 +0,0 @@ -// === findAllReferences === -// === /foo.ts === - -// export function foo() { return "foo"; } -// /*FIND ALL REFS*/import("./foo") -// var x = import("./foo") - - - - -// === findAllReferences === -// === /foo.ts === - -// export function foo() { return "foo"; } -// import("/*FIND ALL REFS*/./foo") -// var x = import("./foo") - - - - -// === findAllReferences === -// === /foo.ts === - -// export function foo() { return "foo"; } -// import("./foo") -// /*FIND ALL REFS*/var x = import("./foo") - - - - -// === findAllReferences === -// === /foo.ts === - -// export function foo() { return "foo"; } -// import("./foo") -// var x = import("/*FIND ALL REFS*/./foo") diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js deleted file mode 100644 index 7b909938d8..0000000000 --- a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module-with-isolatedModules.js +++ /dev/null @@ -1,623 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/bar.ts] *new* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); -//// [/home/src/workspaces/project/bundling.ts] *new* -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} -//// [/home/src/workspaces/project/global.d.ts] *new* -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} -//// [/home/src/workspaces/project/index.ts] *new* -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); -//// [/home/src/workspaces/project/lazyIndex.ts] *new* -export { default as bar } from './bar'; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, - "isolatedModules": true, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/obj/bar.d.ts] *new* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - -//// [/home/src/workspaces/project/obj/bundling.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LazyAction = exports.LazyModule = void 0; -class LazyModule { - importCallback; - constructor(importCallback) { - this.importCallback = importCallback; - } -} -exports.LazyModule = LazyModule; -class LazyAction { - constructor(_lazyModule, _getter) { - } -} -exports.LazyAction = LazyAction; - -//// [/home/src/workspaces/project/obj/index.d.ts] *new* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lazyBar = void 0; -const bundling_1 = require("./bundling"); -const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* -export { default as bar } from './bar'; - -//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = void 0; -const bar_1 = require("./bar"); -Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); - -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/bundling.ts -*refresh* /home/src/workspaces/project/global.d.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/bundling.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: () => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3070 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [1]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js deleted file mode 100644 index d6c921c3f2..0000000000 --- a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/inferred-type-from-transitive-module.js +++ /dev/null @@ -1,625 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/bar.ts] *new* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); -//// [/home/src/workspaces/project/bundling.ts] *new* -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} -//// [/home/src/workspaces/project/global.d.ts] *new* -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} -//// [/home/src/workspaces/project/index.ts] *new* -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); -//// [/home/src/workspaces/project/lazyIndex.ts] *new* -export { default as bar } from './bar'; -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, - "isolatedModules": false, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/obj/bar.d.ts] *new* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - -//// [/home/src/workspaces/project/obj/bundling.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LazyAction = exports.LazyModule = void 0; -class LazyModule { - importCallback; - constructor(importCallback) { - this.importCallback = importCallback; - } -} -exports.LazyModule = LazyModule; -class LazyAction { - constructor(_lazyModule, _getter) { - } -} -exports.LazyAction = LazyAction; - -//// [/home/src/workspaces/project/obj/index.d.ts] *new* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lazyBar = void 0; -const bundling_1 = require("./bundling"); -const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* -export { default as bar } from './bar'; - -//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = void 0; -const bar_1 = require("./bar"); -Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); - -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/bundling.ts -*refresh* /home/src/workspaces/project/global.d.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/bundling.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: () => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/lazyIndex.js] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3070 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [1]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/lazyIndex.js] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "7c5cf52aadc65791601164da964e3110-export { default as bar } from './bar';", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3109 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts diff --git a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js b/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js deleted file mode 100644 index bf8bfe4284..0000000000 --- a/testdata/baselines/reference/tsbuild/inferredTypeFromTransitiveModule/reports-errors-in-files-affected-by-change-in-signature-with-isolatedModules.js +++ /dev/null @@ -1,998 +0,0 @@ -currentDirectory::/home/src/workspaces/project -useCaseSensitiveFileNames::true -Input:: -//// [/home/src/workspaces/project/bar.ts] *new* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); -//// [/home/src/workspaces/project/bundling.ts] *new* -export class LazyModule { - constructor(private importCallback: () => Promise) {} -} - -export class LazyAction< - TAction extends (...args: any[]) => any, - TModule -> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) { - } -} -//// [/home/src/workspaces/project/global.d.ts] *new* -interface PromiseConstructor { - new (): Promise; -} -declare var Promise: PromiseConstructor; -interface Promise { -} -//// [/home/src/workspaces/project/index.ts] *new* -import { LazyAction, LazyModule } from './bundling'; -const lazyModule = new LazyModule(() => - import('./lazyIndex') -); -export const lazyBar = new LazyAction(lazyModule, m => m.bar); -//// [/home/src/workspaces/project/lazyIndex.ts] *new* -export { default as bar } from './bar';import { default as bar } from './bar'; -bar("hello"); -//// [/home/src/workspaces/project/tsconfig.json] *new* -{ - "compilerOptions": { - "target": "es5", - "declaration": true, - "outDir": "obj", - "incremental": true, - "isolatedModules": true, - }, -} - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output file 'obj/tsconfig.tsbuildinfo' does not exist - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/tslibs/TS/Lib/lib.d.ts] *Lib* -/// -interface Boolean {} -interface Function {} -interface CallableFunction {} -interface NewableFunction {} -interface IArguments {} -interface Number { toExponential: any; } -interface Object {} -interface RegExp {} -interface String { charAt: any; } -interface Array { length: number; [n: number]: T; } -interface ReadonlyArray {} -interface SymbolConstructor { - (desc?: string | number): symbol; - for(name: string): symbol; - readonly toStringTag: symbol; -} -declare var Symbol: SymbolConstructor; -interface Symbol { - readonly [Symbol.toStringTag]: string; -} -declare const console: { log(msg: any): void; }; -//// [/home/src/workspaces/project/obj/bar.d.ts] *new* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/bundling.d.ts] *new* -export declare class LazyModule { - private importCallback; - constructor(importCallback: () => Promise); -} -export declare class LazyAction any, TModule> { - constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction); -} - -//// [/home/src/workspaces/project/obj/bundling.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LazyAction = exports.LazyModule = void 0; -class LazyModule { - importCallback; - constructor(importCallback) { - this.importCallback = importCallback; - } -} -exports.LazyModule = LazyModule; -class LazyAction { - constructor(_lazyModule, _getter) { - } -} -exports.LazyAction = LazyAction; - -//// [/home/src/workspaces/project/obj/index.d.ts] *new* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/index.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lazyBar = void 0; -const bundling_1 = require("./bundling"); -const lazyModule = new bundling_1.LazyModule(() => Promise.resolve().then(() => require('./lazyIndex'))); -exports.lazyBar = new bundling_1.LazyAction(lazyModule, m => m.bar); - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *new* -export { default as bar } from './bar'; - -//// [/home/src/workspaces/project/obj/lazyIndex.js] *new* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = void 0; -const bar_1 = require("./bar"); -Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); -const bar_2 = require("./bar"); -(0, bar_2.default)("hello"); - -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *new* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *new* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3165 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/tslibs/TS/Lib/lib.d.ts -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/bundling.ts -*refresh* /home/src/workspaces/project/global.d.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(stored at emit) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/bundling.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [0]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -tsgo --b --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -lazyIndex.ts:2:5 - error TS2554: Expected 0 arguments, but got 1. - -2 bar("hello"); -   ~~~~~~~ - - -Found 1 error in lazyIndex.ts:2 - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: () => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"pos":83,"end":90,"code":2554,"category":1,"message":"Expected 0 arguments, but got 1."}]]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../lazyIndex.ts", - [ - { - "pos": 83, - "end": 90, - "code": 2554, - "category": 1, - "message": "Expected 0 arguments, but got 1." - } - ] - ] - ], - "size": 3253 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [1]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(param: string): void { -}); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'obj/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: (param: string) => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar(param) { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<(param: string) => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});","signature":"16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "76a83326d4e197789f8362e994577f53-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(param: string): void {\n});", - "signature": "16f73d7e0c200fed165b8fa7d55fefbf-declare const _default: (param: string) => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "421664a6306d66498ea4a2e3065214b1-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<(param: string) => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3165 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [2]:: incremental-declaration-changes -//// [/home/src/workspaces/project/bar.ts] *modified* -interface RawAction { - (...args: any[]): Promise | void; -} -interface ActionFactory { - (target: T): T; -} -declare function foo(): ActionFactory; -export default foo()(function foobar(): void { -}); - -tsgo --b --verbose -ExitStatus:: DiagnosticsPresent_OutputsGenerated -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because output 'obj/tsconfig.tsbuildinfo' is older than input 'bar.ts' - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -lazyIndex.ts:2:5 - error TS2554: Expected 0 arguments, but got 1. - -2 bar("hello"); -   ~~~~~~~ - - -Found 1 error in lazyIndex.ts:2 - -//// [/home/src/workspaces/project/obj/bar.d.ts] *modified* -declare const _default: () => void; -export default _default; - -//// [/home/src/workspaces/project/obj/bar.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = foo()(function foobar() { -}); - -//// [/home/src/workspaces/project/obj/index.d.ts] *modified* -import { LazyAction } from './bundling'; -export declare const lazyBar: LazyAction<() => void, typeof import("./lazyIndex")>; - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]],"semanticDiagnosticsPerFile":[[5,[{"pos":83,"end":90,"code":2554,"category":1,"message":"Expected 0 arguments, but got 1."}]]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "60603312318c6195044a5691dcb10507-export { default as bar } from './bar';import { default as bar } from './bar';\nbar(\"hello\");", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "semanticDiagnosticsPerFile": [ - [ - "../lazyIndex.ts", - [ - { - "pos": 83, - "end": 90, - "code": 2554, - "category": 1, - "message": "Expected 0 arguments, but got 1." - } - ] - ] - ], - "size": 3253 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/bar.ts -*refresh* /home/src/workspaces/project/lazyIndex.ts -*refresh* /home/src/workspaces/project/index.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/bar.ts -(stored at emit) /home/src/workspaces/project/lazyIndex.ts -(stored at emit) /home/src/workspaces/project/index.ts - - -Edit [3]:: Fix Error -//// [/home/src/workspaces/project/lazyIndex.ts] *modified* -export { default as bar } from './bar';import { default as bar } from './bar'; -bar(); - -tsgo --b --verbose -ExitStatus:: Success -Output:: -[HH:MM:SS AM] Projects in this build: - * tsconfig.json - -[HH:MM:SS AM] Project 'tsconfig.json' is out of date because buildinfo file 'obj/tsconfig.tsbuildinfo' indicates that program needs to report errors. - -[HH:MM:SS AM] Building project 'tsconfig.json'... - -//// [/home/src/workspaces/project/obj/lazyIndex.d.ts] *rewrite with same content* -//// [/home/src/workspaces/project/obj/lazyIndex.js] *modified* -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bar = void 0; -const bar_1 = require("./bar"); -Object.defineProperty(exports, "bar", { enumerable: true, get: function () { return bar_1.default; } }); -const bar_2 = require("./bar"); -(0, bar_2.default)(); - -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo] *modified* -{"version":"FakeTSVersion","root":[[2,6]],"fileNames":["lib.d.ts","../bar.ts","../bundling.ts","../global.d.ts","../lazyIndex.ts","../index.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});","signature":"6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n","impliedNodeFormat":1},{"version":"16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}","signature":"5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n","impliedNodeFormat":1},{"version":"9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}","affectsGlobalScope":true,"impliedNodeFormat":1},{"version":"d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();","signature":"3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n","impliedNodeFormat":1},{"version":"d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);","signature":"58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n","impliedNodeFormat":1}],"fileIdsList":[[3,5],[2]],"options":{"declaration":true,"outDir":"./","target":1},"referencedMap":[[6,1],[5,2]]} -//// [/home/src/workspaces/project/obj/tsconfig.tsbuildinfo.readable.baseline.txt] *modified* -{ - "version": "FakeTSVersion", - "root": [ - { - "files": [ - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "original": [ - 2, - 6 - ] - } - ], - "fileNames": [ - "lib.d.ts", - "../bar.ts", - "../bundling.ts", - "../global.d.ts", - "../lazyIndex.ts", - "../index.ts" - ], - "fileInfos": [ - { - "fileName": "lib.d.ts", - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "signature": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "8859c12c614ce56ba9a18e58384a198f-/// \ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array { length: number; [n: number]: T; }\ninterface ReadonlyArray {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bar.ts", - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "0bd8823a281968531aa051fd0166b47a-interface RawAction {\n (...args: any[]): Promise | void;\n}\ninterface ActionFactory {\n (target: T): T;\n}\ndeclare function foo(): ActionFactory;\nexport default foo()(function foobar(): void {\n});", - "signature": "6cd64ed70c0d0d178b062e1470eb929d-declare const _default: () => void;\nexport default _default;\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../bundling.ts", - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "16bf1b870d8b21533eda3b1f1b87cd77-export class LazyModule {\n constructor(private importCallback: () => Promise) {}\n}\n\nexport class LazyAction<\n TAction extends (...args: any[]) => any,\n TModule\n> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction) {\n }\n}", - "signature": "5e4757586f6f5d494b6763f1e808313a-export declare class LazyModule {\n private importCallback;\n constructor(importCallback: () => Promise);\n}\nexport declare class LazyAction any, TModule> {\n constructor(_lazyModule: LazyModule, _getter: (module: TModule) => TAction);\n}\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../global.d.ts", - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "signature": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": "CommonJS", - "original": { - "version": "9c9274fd70d574f2b4b68a2891bd4c47-interface PromiseConstructor {\n new (): Promise;\n}\ndeclare var Promise: PromiseConstructor;\ninterface Promise {\n}", - "affectsGlobalScope": true, - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../lazyIndex.ts", - "version": "d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d72f752a863fc77fab29beff184a4fb0-export { default as bar } from './bar';import { default as bar } from './bar';\nbar();", - "signature": "3a848e147ba2aebbd888c3c7bbab715b-export { default as bar } from './bar';\n", - "impliedNodeFormat": 1 - } - }, - { - "fileName": "../index.ts", - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": "CommonJS", - "original": { - "version": "d552d2a19fa05b15aa33018233d09810-import { LazyAction, LazyModule } from './bundling';\nconst lazyModule = new LazyModule(() =>\n import('./lazyIndex')\n);\nexport const lazyBar = new LazyAction(lazyModule, m => m.bar);", - "signature": "58c7056d7920602a0f958afefa15677d-import { LazyAction } from './bundling';\nexport declare const lazyBar: LazyAction<() => void, typeof import(\"./lazyIndex\")>;\n", - "impliedNodeFormat": 1 - } - } - ], - "fileIdsList": [ - [ - "../bundling.ts", - "../lazyIndex.ts" - ], - [ - "../bar.ts" - ] - ], - "options": { - "declaration": true, - "outDir": "./", - "target": 1 - }, - "referencedMap": { - "../index.ts": [ - "../bundling.ts", - "../lazyIndex.ts" - ], - "../lazyIndex.ts": [ - "../bar.ts" - ] - }, - "size": 3117 -} - -tsconfig.json:: -SemanticDiagnostics:: -*refresh* /home/src/workspaces/project/lazyIndex.ts -Signatures:: -(computed .d.ts) /home/src/workspaces/project/lazyIndex.ts