diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 406084f80ce14..607d25c883e88 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4738,7 +4738,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { const mode = contextSpecifier && isStringLiteralLike(contextSpecifier) ? getModeForUsageLocation(currentSourceFile, contextSpecifier) : currentSourceFile.impliedNodeFormat; const moduleResolutionKind = getEmitModuleResolutionKind(compilerOptions); const resolvedModule = getResolvedModule(currentSourceFile, moduleReference, mode); - const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule); + const resolutionDiagnostic = resolvedModule && getResolutionDiagnostic(compilerOptions, resolvedModule, currentSourceFile); const sourceFile = resolvedModule && (!resolutionDiagnostic || resolutionDiagnostic === Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set) && host.getSourceFile(resolvedModule.resolvedFileName); diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 1010bd171c63a..4a699c8bc34e6 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -1206,6 +1206,14 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [ description: Diagnostics.Enable_importing_json_files, defaultValueDescription: false, }, + { + name: "allowArbitraryExtensions", + type: "boolean", + affectsModuleResolution: true, + category: Diagnostics.Modules, + description: Diagnostics.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present, + defaultValueDescription: false, + }, { name: "out", diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index 7573cbc29eaf3..ebba7cb060562 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -5190,6 +5190,18 @@ "category": "Message", "code": 6261 }, + "File name '{0}' has a '{1}' extension - looking up '{2}' instead.": { + "category": "Message", + "code": 6262 + }, + "Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set.": { + "category": "Error", + "code": 6263 + }, + "Enable importing files with any extension, provided a declaration file is present.": { + "category": "Message", + "code": 6264 + }, "Directory '{0}' has no containing package.json scope. Imports will not resolve.": { "category": "Message", diff --git a/src/compiler/moduleNameResolver.ts b/src/compiler/moduleNameResolver.ts index be8573b075db3..30cbc37fd14e9 100644 --- a/src/compiler/moduleNameResolver.ts +++ b/src/compiler/moduleNameResolver.ts @@ -52,7 +52,6 @@ import { getRelativePathFromDirectory, getResolveJsonModule, getRootLength, - hasJSFileExtension, hasProperty, hasTrailingDirectorySeparator, hostGetCanonicalFileName, @@ -99,7 +98,6 @@ import { startsWith, stringContains, supportedDeclarationExtensions, - supportedTSExtensionsFlat, supportedTSImplementationExtensions, toPath, tryExtractTSExtension, @@ -151,7 +149,7 @@ function removeIgnoredPackageId(r: Resolved | undefined): PathAndExtension | und /** Result of trying to resolve a module. */ interface Resolved { path: string; - extension: Extension; + extension: string; packageId: PackageId | undefined; /** * When the resolved is not created from cache, the value is @@ -170,7 +168,7 @@ interface Resolved { interface PathAndExtension { path: string; // (Use a different name than `extension` to make sure Resolved isn't assignable to PathAndExtension.) - ext: Extension; + ext: string; resolvedUsingTsExtension: boolean | undefined; } @@ -1856,21 +1854,21 @@ function loadModuleFromFile(extensions: Extensions, candidate: string, onlyRecor } function loadModuleFromFileNoImplicitExtensions(extensions: Extensions, candidate: string, onlyRecordFailures: boolean, state: ModuleResolutionState): PathAndExtension | undefined { - // If that didn't work, try stripping a ".js" or ".jsx" extension and replacing it with a TypeScript one; - // e.g. "./foo.js" can be matched by "./foo.ts" or "./foo.d.ts" - if (hasJSFileExtension(candidate) || - extensions & Extensions.Json && fileExtensionIs(candidate, Extension.Json) || - extensions & (Extensions.TypeScript | Extensions.Declaration) - && moduleResolutionSupportsResolvingTsExtensions(state.compilerOptions) - && fileExtensionIsOneOf(candidate, supportedTSExtensionsFlat) - ) { - const extensionless = removeFileExtension(candidate); - const extension = candidate.substring(extensionless.length); - if (state.traceEnabled) { - trace(state.host, Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension); - } - return tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures, state); + const filename = getBaseFileName(candidate); + if (filename.indexOf(".") === -1) { + return undefined; // extensionless import, no lookups performed, since we don't support extensionless files + } + let extensionless = removeFileExtension(candidate); + if (extensionless === candidate) { + // Once TS native extensions are handled, handle arbitrary extensions for declaration file mapping + extensionless = candidate.substring(0, candidate.lastIndexOf(".")); + } + + const extension = candidate.substring(extensionless.length); + if (state.traceEnabled) { + trace(state.host, Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension); } + return tryAddingExtensions(extensionless, extensions, extension, onlyRecordFailures, state); } /** @@ -1909,47 +1907,46 @@ function tryAddingExtensions(candidate: string, extensions: Extensions, original case Extension.Mjs: case Extension.Mts: case Extension.Dmts: - return extensions & Extensions.TypeScript && tryExtension(Extension.Mts) - || extensions & Extensions.Declaration && tryExtension(Extension.Dmts) + return extensions & Extensions.TypeScript && tryExtension(Extension.Mts, originalExtension === Extension.Mts || originalExtension === Extension.Dmts) + || extensions & Extensions.Declaration && tryExtension(Extension.Dmts, originalExtension === Extension.Mts || originalExtension === Extension.Dmts) || extensions & Extensions.JavaScript && tryExtension(Extension.Mjs) || undefined; case Extension.Cjs: case Extension.Cts: case Extension.Dcts: - return extensions & Extensions.TypeScript && tryExtension(Extension.Cts) - || extensions & Extensions.Declaration && tryExtension(Extension.Dcts) + return extensions & Extensions.TypeScript && tryExtension(Extension.Cts, originalExtension === Extension.Cts || originalExtension === Extension.Dcts) + || extensions & Extensions.Declaration && tryExtension(Extension.Dcts, originalExtension === Extension.Cts || originalExtension === Extension.Dcts) || extensions & Extensions.JavaScript && tryExtension(Extension.Cjs) || undefined; case Extension.Json: - const originalCandidate = candidate; - if (extensions & Extensions.Declaration) { - candidate += Extension.Json; - const result = tryExtension(Extension.Dts); - if (result) return result; - } - if (extensions & Extensions.Json) { - candidate = originalCandidate; - const result = tryExtension(Extension.Json); - if (result) return result; - } - return undefined; - case Extension.Ts: + return extensions & Extensions.Declaration && tryExtension(".d.json.ts") + || extensions & Extensions.Json && tryExtension(Extension.Json) + || undefined; case Extension.Tsx: + case Extension.Jsx: + // basically idendical to the ts/js case below, but prefers matching tsx and jsx files exactly before falling back to the ts or js file path + // (historically, we disallow having both a a.ts and a.tsx file in the same compilation, since their outputs clash) + // TODO: We should probably error if `"./a.tsx"` resolved to `"./a.ts"`, right? + return extensions & Extensions.TypeScript && (tryExtension(Extension.Tsx, originalExtension === Extension.Tsx) || tryExtension(Extension.Ts, originalExtension === Extension.Tsx)) + || extensions & Extensions.Declaration && tryExtension(Extension.Dts, originalExtension === Extension.Tsx) + || extensions & Extensions.JavaScript && (tryExtension(Extension.Jsx) || tryExtension(Extension.Js)) + || undefined; + case Extension.Ts: case Extension.Dts: - if (moduleResolutionSupportsResolvingTsExtensions(state.compilerOptions) && extensionIsOk(extensions, originalExtension)) { - return tryExtension(originalExtension, /*resolvedUsingTsExtension*/ true); - } - // falls through - default: - return extensions & Extensions.TypeScript && (tryExtension(Extension.Ts) || tryExtension(Extension.Tsx)) - || extensions & Extensions.Declaration && tryExtension(Extension.Dts) + case Extension.Js: + case "": + return extensions & Extensions.TypeScript && (tryExtension(Extension.Ts, originalExtension === Extension.Ts || originalExtension === Extension.Dts) || tryExtension(Extension.Tsx, originalExtension === Extension.Ts || originalExtension === Extension.Dts)) + || extensions & Extensions.Declaration && tryExtension(Extension.Dts, originalExtension === Extension.Ts || originalExtension === Extension.Dts) || extensions & Extensions.JavaScript && (tryExtension(Extension.Js) || tryExtension(Extension.Jsx)) || state.isConfigLookup && tryExtension(Extension.Json) || undefined; + default: + return extensions & Extensions.Declaration && !isDeclarationFileName(candidate + originalExtension) && tryExtension(`.d${originalExtension}.ts`) + || undefined; } - function tryExtension(ext: Extension, resolvedUsingTsExtension?: boolean): PathAndExtension | undefined { + function tryExtension(ext: string, resolvedUsingTsExtension?: boolean): PathAndExtension | undefined { const path = tryFile(candidate + ext, onlyRecordFailures, state); return path === undefined ? undefined : { path, ext, resolvedUsingTsExtension }; } @@ -2984,14 +2981,10 @@ export function classicNameResolver(moduleName: string, containingFile: string, } } -export function moduleResolutionSupportsResolvingTsExtensions(compilerOptions: CompilerOptions) { - return getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.Bundler; -} - // Program errors validate that `noEmit` or `emitDeclarationOnly` is also set, // so this function doesn't check them to avoid propagating errors. export function shouldAllowImportingTsExtension(compilerOptions: CompilerOptions, fromFileName?: string) { - return moduleResolutionSupportsResolvingTsExtensions(compilerOptions) && ( + return getEmitModuleResolutionKind(compilerOptions) === ModuleResolutionKind.Bundler && ( !!compilerOptions.allowImportingTsExtensions || fromFileName && isDeclarationFileName(fromFileName)); } diff --git a/src/compiler/moduleSpecifiers.ts b/src/compiler/moduleSpecifiers.ts index 351d98a24bd19..6dbbcb3fae03f 100644 --- a/src/compiler/moduleSpecifiers.ts +++ b/src/compiler/moduleSpecifiers.ts @@ -31,6 +31,7 @@ import { flatten, forEach, forEachAncestorDirectory, + getBaseFileName, GetCanonicalFileName, getDirectoryPath, getEmitModuleResolutionKind, @@ -85,6 +86,7 @@ import { pathIsBareSpecifier, pathIsRelative, PropertyAccessExpression, + removeExtension, removeFileExtension, removeSuffix, ResolutionMode, @@ -1036,6 +1038,10 @@ function processEnding(fileName: string, allowedEndings: readonly ModuleSpecifie if (fileExtensionIsOneOf(fileName, [Extension.Dmts, Extension.Mts, Extension.Dcts, Extension.Cts])) { return noExtension + getJSExtensionForFile(fileName, options); } + else if (!fileExtensionIsOneOf(fileName, [Extension.Dts]) && fileExtensionIsOneOf(fileName, [Extension.Ts]) && stringContains(fileName, ".d.")) { + // `foo.d.json.ts` and the like - remap back to `foo.json` + return tryGetRealFileNameForNonJsDeclarationFileName(fileName)!; + } switch (allowedEndings[0]) { case ModuleSpecifierEnding.Minimal: @@ -1066,6 +1072,15 @@ function processEnding(fileName: string, allowedEndings: readonly ModuleSpecifie } } +/** @internal */ +export function tryGetRealFileNameForNonJsDeclarationFileName(fileName: string) { + const baseName = getBaseFileName(fileName); + if (!endsWith(fileName, Extension.Ts) || !stringContains(baseName, ".d.") || fileExtensionIsOneOf(baseName, [Extension.Dts])) return undefined; + const noExtension = removeExtension(fileName, Extension.Ts); + const ext = noExtension.substring(noExtension.lastIndexOf(".")); + return noExtension.substring(0, noExtension.indexOf(".d.")) + ext; +} + function getJSExtensionForFile(fileName: string, options: CompilerOptions): Extension { return tryGetJSExtensionForFile(fileName, options) ?? Debug.fail(`Extension ${extensionFromPath(fileName)} is unsupported:: FileName:: ${fileName}`); } diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index 25319bfba5bdd..63299b607b1a0 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -84,7 +84,9 @@ import { Expression, ExpressionStatement, ExpressionWithTypeArguments, + Extension, ExternalModuleReference, + fileExtensionIs, fileExtensionIsOneOf, findIndex, forEach, @@ -98,6 +100,7 @@ import { FunctionOrConstructorTypeNode, FunctionTypeNode, GetAccessorDeclaration, + getBaseFileName, getBinaryOperatorPrecedence, getFullWidth, getJSDocCommentRanges, @@ -328,6 +331,7 @@ import { SpreadElement, startsWith, Statement, + stringContains, StringLiteral, supportedDeclarationExtensions, SwitchStatement, @@ -10114,7 +10118,7 @@ namespace IncrementalParser { /** @internal */ export function isDeclarationFileName(fileName: string): boolean { - return fileExtensionIsOneOf(fileName, supportedDeclarationExtensions); + return fileExtensionIsOneOf(fileName, supportedDeclarationExtensions) || (fileExtensionIs(fileName, Extension.Ts) && stringContains(getBaseFileName(fileName), ".d.")); } function parseResolutionMode(mode: string | undefined, pos: number, end: number, reportDiagnostic: PragmaDiagnosticReporter): ResolutionMode { diff --git a/src/compiler/program.ts b/src/compiler/program.ts index a9ac7f940e220..67e7e20928d58 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -218,7 +218,6 @@ import { moduleResolutionIsEqualTo, ModuleResolutionKind, moduleResolutionSupportsPackageJsonExportsAndImports, - moduleResolutionSupportsResolvingTsExtensions, Mutable, Node, NodeArray, @@ -3845,7 +3844,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg // Don't add the file if it has a bad extension (e.g. 'tsx' if we don't have '--allowJs') // This may still end up being an untyped module -- the file won't be included but imports will be allowed. const shouldAddFile = resolvedFileName - && !getResolutionDiagnostic(optionsForFile, resolution) + && !getResolutionDiagnostic(optionsForFile, resolution, file) && !optionsForFile.noResolve && index < file.imports.length && !elideImport @@ -4213,7 +4212,7 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg createOptionValueDiagnostic("importsNotUsedAsValues", Diagnostics.Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later); } - if (options.allowImportingTsExtensions && !(moduleResolutionSupportsResolvingTsExtensions(options) && (options.noEmit || options.emitDeclarationOnly))) { + if (options.allowImportingTsExtensions && !(options.noEmit || options.emitDeclarationOnly)) { createOptionValueDiagnostic("allowImportingTsExtensions", Diagnostics.Option_allowImportingTsExtensions_can_only_be_used_when_moduleResolution_is_set_to_bundler_and_either_noEmit_or_emitDeclarationOnly_is_set); } @@ -4947,10 +4946,14 @@ export function resolveProjectReferencePath(hostOrRef: ResolveProjectReferencePa * * @internal */ -export function getResolutionDiagnostic(options: CompilerOptions, { extension }: ResolvedModuleFull): DiagnosticMessage | undefined { +export function getResolutionDiagnostic(options: CompilerOptions, { extension }: ResolvedModuleFull, { isDeclarationFile }: { isDeclarationFile: SourceFile["isDeclarationFile"] }): DiagnosticMessage | undefined { switch (extension) { case Extension.Ts: case Extension.Dts: + case Extension.Mts: + case Extension.Dmts: + case Extension.Cts: + case Extension.Dcts: // These are always allowed. return undefined; case Extension.Tsx: @@ -4958,9 +4961,13 @@ export function getResolutionDiagnostic(options: CompilerOptions, { extension }: case Extension.Jsx: return needJsx() || needAllowJs(); case Extension.Js: + case Extension.Mjs: + case Extension.Cjs: return needAllowJs(); case Extension.Json: return needResolveJsonModule(); + default: + return needAllowArbitraryExtensions(); } function needJsx() { @@ -4972,6 +4979,10 @@ export function getResolutionDiagnostic(options: CompilerOptions, { extension }: function needResolveJsonModule() { return getResolveJsonModule(options) ? undefined : Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used; } + function needAllowArbitraryExtensions() { + // But don't report the allowArbitraryExtensions error from declaration files (no reason to report it, since the import doesn't have a runtime component) + return isDeclarationFile || options.allowArbitraryExtensions ? undefined : Diagnostics.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set; + } } function getModuleNames({ imports, moduleAugmentations }: SourceFile): StringLiteralLike[] { diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 44a716a516f7a..325e3c109bdbe 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -6974,6 +6974,7 @@ export interface CompilerOptions { allowImportingTsExtensions?: boolean; allowJs?: boolean; /** @internal */ allowNonTsExtensions?: boolean; + allowArbitraryExtensions?: boolean; allowSyntheticDefaultImports?: boolean; allowUmdGlobalAccess?: boolean; allowUnreachableCode?: boolean; @@ -7557,7 +7558,7 @@ export interface ResolvedModuleFull extends ResolvedModule { * Extension of resolvedFileName. This must match what's at the end of resolvedFileName. * This is optional for backwards-compatibility, but will be added if not provided. */ - extension: Extension; + extension: string; packageId?: PackageId; } diff --git a/src/compiler/utilities.ts b/src/compiler/utilities.ts index d76ea0241da4c..cd15c1e433367 100644 --- a/src/compiler/utilities.ts +++ b/src/compiler/utilities.ts @@ -103,6 +103,7 @@ import { EmitResolver, EmitTextWriter, emptyArray, + endsWith, ensurePathIsNonModuleName, ensureTrailingDirectorySeparator, EntityName, @@ -5497,7 +5498,7 @@ export function getDeclarationEmitOutputFilePathWorker(fileName: string, options export function getDeclarationEmitExtensionForPath(path: string) { return fileExtensionIsOneOf(path, [Extension.Mjs, Extension.Mts]) ? Extension.Dmts : fileExtensionIsOneOf(path, [Extension.Cjs, Extension.Cts]) ? Extension.Dcts : - fileExtensionIsOneOf(path, [Extension.Json]) ? `.json.d.ts` : // Drive-by redefinition of json declaration file output name so if it's ever enabled, it behaves well + fileExtensionIsOneOf(path, [Extension.Json]) ? `.d.json.ts` : // Drive-by redefinition of json declaration file output name so if it's ever enabled, it behaves well Extension.Dts; } @@ -5509,7 +5510,7 @@ export function getDeclarationEmitExtensionForPath(path: string) { export function getPossibleOriginalInputExtensionForExtension(path: string) { return fileExtensionIsOneOf(path, [Extension.Dmts, Extension.Mjs, Extension.Mts]) ? [Extension.Mts, Extension.Mjs] : fileExtensionIsOneOf(path, [Extension.Dcts, Extension.Cjs, Extension.Cts]) ? [Extension.Cts, Extension.Cjs]: - fileExtensionIsOneOf(path, [`.json.d.ts`]) ? [Extension.Json] : + fileExtensionIsOneOf(path, [`.d.json.ts`]) ? [Extension.Json] : [Extension.Tsx, Extension.Ts, Extension.Jsx, Extension.Js]; } @@ -8670,12 +8671,12 @@ export function positionIsSynthesized(pos: number): boolean { * * @internal */ -export function extensionIsTS(ext: Extension): boolean { - return ext === Extension.Ts || ext === Extension.Tsx || ext === Extension.Dts || ext === Extension.Cts || ext === Extension.Mts || ext === Extension.Dmts || ext === Extension.Dcts; +export function extensionIsTS(ext: string): boolean { + return ext === Extension.Ts || ext === Extension.Tsx || ext === Extension.Dts || ext === Extension.Cts || ext === Extension.Mts || ext === Extension.Dmts || ext === Extension.Dcts || (startsWith(ext, ".d.") && endsWith(ext, ".ts")); } /** @internal */ -export function resolutionExtensionIsTSOrJson(ext: Extension) { +export function resolutionExtensionIsTSOrJson(ext: string) { return extensionIsTS(ext) || ext === Extension.Json; } diff --git a/src/harness/compilerImpl.ts b/src/harness/compilerImpl.ts index 6897adcc8b92c..ef0647f1fee8a 100644 --- a/src/harness/compilerImpl.ts +++ b/src/harness/compilerImpl.ts @@ -213,7 +213,7 @@ export class CompilationResult { } else { path = vpath.resolve(this.vfs.cwd(), path); - const outDir = ext === ".d.ts" || ext === ".json.d.ts" || ext === ".d.mts" || ext === ".d.cts" ? this.options.declarationDir || this.options.outDir : this.options.outDir; + const outDir = ext === ".d.ts" || ext === ".d.mts" || ext === ".d.cts" || (ext.endsWith(".ts") || ts.stringContains(ext, ".d.")) ? this.options.declarationDir || this.options.outDir : this.options.outDir; if (outDir) { const common = this.commonSourceDirectory; if (common) { diff --git a/src/services/stringCompletions.ts b/src/services/stringCompletions.ts index 6af987675a24b..310c550dc33c2 100644 --- a/src/services/stringCompletions.ts +++ b/src/services/stringCompletions.ts @@ -691,6 +691,10 @@ function getCompletionEntriesForDirectoryFragment( } function getFilenameWithExtensionOption(name: string, compilerOptions: CompilerOptions, extensionOptions: ExtensionOptions): { name: string, extension: Extension | undefined } { + const nonJsResult = moduleSpecifiers.tryGetRealFileNameForNonJsDeclarationFileName(name); + if (nonJsResult) { + return { name: nonJsResult, extension: tryGetExtensionFromPath(nonJsResult) }; + } if (extensionOptions.referenceKind === ReferenceKind.Filename) { return { name, extension: tryGetExtensionFromPath(name) }; } diff --git a/src/testRunner/compilerRunner.ts b/src/testRunner/compilerRunner.ts index 33d01f4c24953..02d02ee8b8433 100644 --- a/src/testRunner/compilerRunner.ts +++ b/src/testRunner/compilerRunner.ts @@ -165,6 +165,8 @@ class CompilerTest { "noPropertyAccessFromIndexSignature", "resolvePackageJsonExports", "resolvePackageJsonImports", + "resolveJsonModule", + "allowArbitraryExtensions", ]; private fileName: string; private justName: string; diff --git a/src/testRunner/tests.ts b/src/testRunner/tests.ts index c4a34d424b222..aa8817e7cd049 100644 --- a/src/testRunner/tests.ts +++ b/src/testRunner/tests.ts @@ -114,6 +114,7 @@ import "./unittests/tscWatch/moduleResolution"; import "./unittests/tscWatch/programUpdates"; import "./unittests/tscWatch/projectsWithReferences"; import "./unittests/tscWatch/resolutionCache"; +import "./unittests/tscWatch/resolveJsonModuleWithIncremental"; import "./unittests/tscWatch/sourceOfProjectReferenceRedirect"; import "./unittests/tscWatch/watchApi"; import "./unittests/tscWatch/watchEnvironment"; diff --git a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts index afb337082c8c8..a4157c0f9e95f 100644 --- a/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts +++ b/src/testRunner/unittests/tscWatch/emitAndErrorUpdates.ts @@ -279,10 +279,10 @@ export class Data { }; const lib1ToolsPublic: File = { path: `/user/username/projects/myproject/lib1/tools/public.ts`, - content: `export * from "./tools.interface";` + content: `export * from "./toolsinterface";` }; const lib1ToolsInterface: File = { - path: `/user/username/projects/myproject/lib1/tools/tools.interface.ts`, + path: `/user/username/projects/myproject/lib1/tools/toolsinterface.ts`, content: `export interface ITest { title: string; }` diff --git a/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts b/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts new file mode 100644 index 0000000000000..7838b8a666043 --- /dev/null +++ b/src/testRunner/unittests/tscWatch/resolveJsonModuleWithIncremental.ts @@ -0,0 +1,27 @@ +import { + createWatchedSystem, + libFile, +} from "../virtualFileSystemWithWatch"; +import { + verifyTscWatch, +} from "./helpers"; + +describe("unittests:: tsc-watch:: resolveJsonModuleWithIncremental:: emit file --incremental", () => { + verifyTscWatch({ + scenario: "resolveJsonModule", + subScenario: "incremental always prefers declaration file over document", + sys: () => createWatchedSystem({ + "/src/project/main.ts": `import data from "./data.json"; let x: string = data;`, + "/src/project/data.json": `{}`, // this file intentionally left blank + "/src/project/data.d.json.ts": `declare var val: string; export default val;`, + "/src/project/tsconfig.json": JSON.stringify({ compilerOptions: { resolveJsonModule: true } }, null, 4), // eslint-disable-line no-null/no-null + [libFile.path]: libFile.content, + }), + commandLineArgs: ["--p", "src/project", "-i", "-w"], + edits: [{ + caption: "Change json setting", + edit: sys => sys.writeFile("/src/project/tsconfig.json", JSON.stringify({ compilerOptions: { resolveJsonModule: false } }, null, 4)), // eslint-disable-line no-null/no-null + timeouts: sys => sys.runQueuedTimeoutCallbacks(), + }] + }); +}); \ No newline at end of file diff --git a/tests/baselines/reference/api/tsserverlibrary.d.ts b/tests/baselines/reference/api/tsserverlibrary.d.ts index 44e2e6143aba9..0884b10602045 100644 --- a/tests/baselines/reference/api/tsserverlibrary.d.ts +++ b/tests/baselines/reference/api/tsserverlibrary.d.ts @@ -7018,6 +7018,7 @@ declare namespace ts { interface CompilerOptions { allowImportingTsExtensions?: boolean; allowJs?: boolean; + allowArbitraryExtensions?: boolean; allowSyntheticDefaultImports?: boolean; allowUmdGlobalAccess?: boolean; allowUnreachableCode?: boolean; @@ -7281,7 +7282,7 @@ declare namespace ts { * Extension of resolvedFileName. This must match what's at the end of resolvedFileName. * This is optional for backwards-compatibility, but will be added if not provided. */ - extension: Extension; + extension: string; packageId?: PackageId; } /** @@ -9212,7 +9213,6 @@ declare namespace ts { function bundlerModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; - function moduleResolutionSupportsResolvingTsExtensions(compilerOptions: CompilerOptions): boolean; function shouldAllowImportingTsExtension(compilerOptions: CompilerOptions, fromFileName?: string): boolean | "" | undefined; interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache, NonRelativeNameResolutionCache, PackageJsonInfoCache { } diff --git a/tests/baselines/reference/api/typescript.d.ts b/tests/baselines/reference/api/typescript.d.ts index e29bb395fe5f4..107407bd58e53 100644 --- a/tests/baselines/reference/api/typescript.d.ts +++ b/tests/baselines/reference/api/typescript.d.ts @@ -3083,6 +3083,7 @@ declare namespace ts { interface CompilerOptions { allowImportingTsExtensions?: boolean; allowJs?: boolean; + allowArbitraryExtensions?: boolean; allowSyntheticDefaultImports?: boolean; allowUmdGlobalAccess?: boolean; allowUnreachableCode?: boolean; @@ -3346,7 +3347,7 @@ declare namespace ts { * Extension of resolvedFileName. This must match what's at the end of resolvedFileName. * This is optional for backwards-compatibility, but will be added if not provided. */ - extension: Extension; + extension: string; packageId?: PackageId; } /** @@ -5277,7 +5278,6 @@ declare namespace ts { function bundlerModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; function nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; function classicNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: NonRelativeModuleNameResolutionCache, redirectedReference?: ResolvedProjectReference): ResolvedModuleWithFailedLookupLocations; - function moduleResolutionSupportsResolvingTsExtensions(compilerOptions: CompilerOptions): boolean; function shouldAllowImportingTsExtension(compilerOptions: CompilerOptions, fromFileName?: string): boolean | "" | undefined; interface TypeReferenceDirectiveResolutionCache extends PerDirectoryResolutionCache, NonRelativeNameResolutionCache, PackageJsonInfoCache { } diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).errors.txt b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).errors.txt index e679c61f21d2e..e7ee36c69ea8b 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).errors.txt +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).errors.txt @@ -10,8 +10,7 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo /project/main.ts(12,16): error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled. /project/main.ts(12,16): error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set. /project/main.ts(16,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. -/project/types.d.ts(2,16): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. -/project/types.d.ts(3,21): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. +/project/types.d.ts(2,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead? !!! error TS5056: Cannot write file 'out/b.js' because it would be overwritten by multiple input files. @@ -93,11 +92,9 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo import {} from "./e"; import {} from "./e.txt"; -==== /project/types.d.ts (2 errors) ==== +==== /project/types.d.ts (1 errors) ==== import {} from "./a.ts"; import {} from "./a.d.ts"; ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. - import type {} from "./a.d.ts"; - ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. \ No newline at end of file +!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead? + import type {} from "./a.d.ts"; \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json index 16bd4a9de2e58..f49a79eb8ddd3 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=false).trace.json @@ -37,8 +37,8 @@ "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", "File name '/project/b.d.ts' has a '.d.ts' extension - stripping it.", - "File '/project/b.d.ts' exist - use it as a name resolution result.", - "======== Module name './b.d.ts' was successfully resolved to '/project/b.d.ts'. ========", + "File '/project/b.ts' exist - use it as a name resolution result.", + "======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ========", "======== Resolving module './c.ts' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/c.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", @@ -81,6 +81,8 @@ "======== Resolving module './e.txt' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/e.txt', target file types: TypeScript, JavaScript, Declaration, JSON.", + "File name '/project/e.txt' has a '.txt' extension - stripping it.", + "File '/project/e.d.txt.ts' does not exist.", "File '/project/e.txt.ts' exist - use it as a name resolution result.", "======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ========", "======== Resolving module './a.ts' from '/project/types.d.ts'. ========", @@ -90,12 +92,6 @@ "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", "File name '/project/a.d.ts' has a '.d.ts' extension - stripping it.", - "File '/project/a.d.ts' does not exist.", - "File '/project/a.d.ts.ts' does not exist.", - "File '/project/a.d.ts.tsx' does not exist.", - "File '/project/a.d.ts.d.ts' does not exist.", - "File '/project/a.d.ts.js' does not exist.", - "File '/project/a.d.ts.jsx' does not exist.", - "Directory '/project/a.d.ts' does not exist, skipping all lookups in it.", - "======== Module name './a.d.ts' was not resolved. ========" + "File '/project/a.ts' exist - use it as a name resolution result.", + "======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).errors.txt b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).errors.txt index a90647850052e..b1e742e1dcba0 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).errors.txt +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).errors.txt @@ -8,8 +8,7 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo /project/main.ts(12,16): error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled. /project/main.ts(12,16): error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set. /project/main.ts(16,16): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. -/project/types.d.ts(2,16): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. -/project/types.d.ts(3,21): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. +/project/types.d.ts(2,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead? !!! error TS6054: File '/project/e.txt' has an unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts', '.js', '.jsx', '.cts', '.d.cts', '.cjs', '.mts', '.d.mts', '.mjs'. @@ -89,11 +88,9 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo import {} from "./e"; import {} from "./e.txt"; -==== /project/types.d.ts (2 errors) ==== +==== /project/types.d.ts (1 errors) ==== import {} from "./a.ts"; import {} from "./a.d.ts"; ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. - import type {} from "./a.d.ts"; - ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. \ No newline at end of file +!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead? + import type {} from "./a.d.ts"; \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json index 16bd4a9de2e58..f49a79eb8ddd3 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=false,noemit=true).trace.json @@ -37,8 +37,8 @@ "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", "File name '/project/b.d.ts' has a '.d.ts' extension - stripping it.", - "File '/project/b.d.ts' exist - use it as a name resolution result.", - "======== Module name './b.d.ts' was successfully resolved to '/project/b.d.ts'. ========", + "File '/project/b.ts' exist - use it as a name resolution result.", + "======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ========", "======== Resolving module './c.ts' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/c.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", @@ -81,6 +81,8 @@ "======== Resolving module './e.txt' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/e.txt', target file types: TypeScript, JavaScript, Declaration, JSON.", + "File name '/project/e.txt' has a '.txt' extension - stripping it.", + "File '/project/e.d.txt.ts' does not exist.", "File '/project/e.txt.ts' exist - use it as a name resolution result.", "======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ========", "======== Resolving module './a.ts' from '/project/types.d.ts'. ========", @@ -90,12 +92,6 @@ "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", "File name '/project/a.d.ts' has a '.d.ts' extension - stripping it.", - "File '/project/a.d.ts' does not exist.", - "File '/project/a.d.ts.ts' does not exist.", - "File '/project/a.d.ts.tsx' does not exist.", - "File '/project/a.d.ts.d.ts' does not exist.", - "File '/project/a.d.ts.js' does not exist.", - "File '/project/a.d.ts.jsx' does not exist.", - "Directory '/project/a.d.ts' does not exist, skipping all lookups in it.", - "======== Module name './a.d.ts' was not resolved. ========" + "File '/project/a.ts' exist - use it as a name resolution result.", + "======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).errors.txt b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).errors.txt index 683dac372525f..928c92f5f33bc 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).errors.txt +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).errors.txt @@ -6,8 +6,7 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo Root file specified for compilation /project/main.ts(8,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './b' instead? /project/main.ts(12,16): error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set. -/project/types.d.ts(2,16): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. -/project/types.d.ts(3,21): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. +/project/types.d.ts(2,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead? !!! error TS5056: Cannot write file 'out/b.js' because it would be overwritten by multiple input files. @@ -80,11 +79,9 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo import {} from "./e"; import {} from "./e.txt"; -==== /project/types.d.ts (2 errors) ==== +==== /project/types.d.ts (1 errors) ==== import {} from "./a.ts"; import {} from "./a.d.ts"; ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. - import type {} from "./a.d.ts"; - ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. \ No newline at end of file +!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead? + import type {} from "./a.d.ts"; \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json index 16bd4a9de2e58..f49a79eb8ddd3 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=false).trace.json @@ -37,8 +37,8 @@ "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", "File name '/project/b.d.ts' has a '.d.ts' extension - stripping it.", - "File '/project/b.d.ts' exist - use it as a name resolution result.", - "======== Module name './b.d.ts' was successfully resolved to '/project/b.d.ts'. ========", + "File '/project/b.ts' exist - use it as a name resolution result.", + "======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ========", "======== Resolving module './c.ts' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/c.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", @@ -81,6 +81,8 @@ "======== Resolving module './e.txt' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/e.txt', target file types: TypeScript, JavaScript, Declaration, JSON.", + "File name '/project/e.txt' has a '.txt' extension - stripping it.", + "File '/project/e.d.txt.ts' does not exist.", "File '/project/e.txt.ts' exist - use it as a name resolution result.", "======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ========", "======== Resolving module './a.ts' from '/project/types.d.ts'. ========", @@ -90,12 +92,6 @@ "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", "File name '/project/a.d.ts' has a '.d.ts' extension - stripping it.", - "File '/project/a.d.ts' does not exist.", - "File '/project/a.d.ts.ts' does not exist.", - "File '/project/a.d.ts.tsx' does not exist.", - "File '/project/a.d.ts.d.ts' does not exist.", - "File '/project/a.d.ts.js' does not exist.", - "File '/project/a.d.ts.jsx' does not exist.", - "Directory '/project/a.d.ts' does not exist, skipping all lookups in it.", - "======== Module name './a.d.ts' was not resolved. ========" + "File '/project/a.ts' exist - use it as a name resolution result.", + "======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).errors.txt b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).errors.txt index 394208e16ad02..f4a3d9beec11e 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).errors.txt +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).errors.txt @@ -3,8 +3,7 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo Root file specified for compilation /project/main.ts(8,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './b' instead? /project/main.ts(12,16): error TS6142: Module './c.tsx' was resolved to '/project/c.tsx', but '--jsx' is not set. -/project/types.d.ts(2,16): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. -/project/types.d.ts(3,21): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. +/project/types.d.ts(2,16): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead? !!! error TS6054: File '/project/e.txt' has an unsupported extension. The only supported extensions are '.ts', '.tsx', '.d.ts', '.js', '.jsx', '.cts', '.d.cts', '.cjs', '.mts', '.d.mts', '.mjs'. @@ -74,11 +73,9 @@ error TS6054: File '/project/e.txt' has an unsupported extension. The only suppo import {} from "./e"; import {} from "./e.txt"; -==== /project/types.d.ts (2 errors) ==== +==== /project/types.d.ts (1 errors) ==== import {} from "./a.ts"; import {} from "./a.d.ts"; ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. - import type {} from "./a.d.ts"; - ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './a' instead. \ No newline at end of file +!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './a' instead? + import type {} from "./a.d.ts"; \ No newline at end of file diff --git a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json index 16bd4a9de2e58..f49a79eb8ddd3 100644 --- a/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json +++ b/tests/baselines/reference/bundlerImportTsExtensions(allowimportingtsextensions=true,noemit=true).trace.json @@ -37,8 +37,8 @@ "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/b.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", "File name '/project/b.d.ts' has a '.d.ts' extension - stripping it.", - "File '/project/b.d.ts' exist - use it as a name resolution result.", - "======== Module name './b.d.ts' was successfully resolved to '/project/b.d.ts'. ========", + "File '/project/b.ts' exist - use it as a name resolution result.", + "======== Module name './b.d.ts' was successfully resolved to '/project/b.ts'. ========", "======== Resolving module './c.ts' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/c.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", @@ -81,6 +81,8 @@ "======== Resolving module './e.txt' from '/project/main.ts'. ========", "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/e.txt', target file types: TypeScript, JavaScript, Declaration, JSON.", + "File name '/project/e.txt' has a '.txt' extension - stripping it.", + "File '/project/e.d.txt.ts' does not exist.", "File '/project/e.txt.ts' exist - use it as a name resolution result.", "======== Module name './e.txt' was successfully resolved to '/project/e.txt.ts'. ========", "======== Resolving module './a.ts' from '/project/types.d.ts'. ========", @@ -90,12 +92,6 @@ "Explicitly specified module resolution kind: 'Bundler'.", "Loading module as file / folder, candidate module location '/project/a.d.ts', target file types: TypeScript, JavaScript, Declaration, JSON.", "File name '/project/a.d.ts' has a '.d.ts' extension - stripping it.", - "File '/project/a.d.ts' does not exist.", - "File '/project/a.d.ts.ts' does not exist.", - "File '/project/a.d.ts.tsx' does not exist.", - "File '/project/a.d.ts.d.ts' does not exist.", - "File '/project/a.d.ts.js' does not exist.", - "File '/project/a.d.ts.jsx' does not exist.", - "Directory '/project/a.d.ts' does not exist, skipping all lookups in it.", - "======== Module name './a.d.ts' was not resolved. ========" + "File '/project/a.ts' exist - use it as a name resolution result.", + "======== Module name './a.d.ts' was successfully resolved to '/project/a.ts'. ========" ] \ No newline at end of file diff --git a/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json index 278a4b9acc500..44f0d12a60dce 100644 --- a/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json index 278a4b9acc500..44f0d12a60dce 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --help/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json index 278a4b9acc500..44f0d12a60dce 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with --watch/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json index 09409f72b56f8..ec9755595785c 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with advanced options/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json index 8e62af7a4e98b..dc1cbd0260ee9 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with boolean value compiler options/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json index 668c2673716dc..0c2b3cef5e01b 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with enum value compiler options/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json index c061d6de30f84..924da33ea0c00 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with files options/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json index 225eaf0502755..4a82bf2b3c90c 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option value/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json index 278a4b9acc500..44f0d12a60dce 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with incorrect compiler option/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json index 4cccea8eff898..6e11011c888e7 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options with enum value/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json index a4f8d9b3abbb0..9e7148c874a29 100644 --- a/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json +++ b/tests/baselines/reference/config/initTSConfig/Initialized TSConfig with list compiler options/tsconfig.json @@ -40,6 +40,7 @@ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ // "resolveJsonModule": true, /* Enable importing .json files. */ + // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ /* JavaScript Support */ diff --git a/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/allowArbitraryExtensions/tsconfig.json b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/allowArbitraryExtensions/tsconfig.json new file mode 100644 index 0000000000000..8fdfcb5e1aa70 --- /dev/null +++ b/tests/baselines/reference/config/showConfig/Shows tsconfig for single option/allowArbitraryExtensions/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "allowArbitraryExtensions": true + } +} diff --git a/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.js b/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.js new file mode 100644 index 0000000000000..4f9eb32649fd0 --- /dev/null +++ b/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.js @@ -0,0 +1,38 @@ +//// [tests/cases/compiler/declarationEmitTransitiveImportOfHtmlDeclarationItem.ts] //// + +//// [foo.d.html.ts] +export declare class CustomHtmlRepresentationThing {} + +//// [reexporter.ts] +import { CustomHtmlRepresentationThing } from "./foo.html"; + +export function func() { + return new CustomHtmlRepresentationThing(); +} + +//// [index.ts] +import { func } from "./reexporter"; +export const c = func(); + +//// [reexporter.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.func = void 0; +var foo_html_1 = require("./foo.html"); +function func() { + return new foo_html_1.CustomHtmlRepresentationThing(); +} +exports.func = func; +//// [index.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.c = void 0; +var reexporter_1 = require("./reexporter"); +exports.c = (0, reexporter_1.func)(); + + +//// [reexporter.d.ts] +import { CustomHtmlRepresentationThing } from "./foo.html"; +export declare function func(): CustomHtmlRepresentationThing; +//// [index.d.ts] +export declare const c: import("./foo.html").CustomHtmlRepresentationThing; diff --git a/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.symbols b/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.symbols new file mode 100644 index 0000000000000..a1a334e6e3786 --- /dev/null +++ b/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.symbols @@ -0,0 +1,23 @@ +=== tests/cases/compiler/foo.d.html.ts === +export declare class CustomHtmlRepresentationThing {} +>CustomHtmlRepresentationThing : Symbol(CustomHtmlRepresentationThing, Decl(foo.d.html.ts, 0, 0)) + +=== tests/cases/compiler/reexporter.ts === +import { CustomHtmlRepresentationThing } from "./foo.html"; +>CustomHtmlRepresentationThing : Symbol(CustomHtmlRepresentationThing, Decl(reexporter.ts, 0, 8)) + +export function func() { +>func : Symbol(func, Decl(reexporter.ts, 0, 59)) + + return new CustomHtmlRepresentationThing(); +>CustomHtmlRepresentationThing : Symbol(CustomHtmlRepresentationThing, Decl(reexporter.ts, 0, 8)) +} + +=== tests/cases/compiler/index.ts === +import { func } from "./reexporter"; +>func : Symbol(func, Decl(index.ts, 0, 8)) + +export const c = func(); +>c : Symbol(c, Decl(index.ts, 1, 12)) +>func : Symbol(func, Decl(index.ts, 0, 8)) + diff --git a/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.types b/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.types new file mode 100644 index 0000000000000..ffc2b416e2aaa --- /dev/null +++ b/tests/baselines/reference/declarationEmitTransitiveImportOfHtmlDeclarationItem.types @@ -0,0 +1,25 @@ +=== tests/cases/compiler/foo.d.html.ts === +export declare class CustomHtmlRepresentationThing {} +>CustomHtmlRepresentationThing : CustomHtmlRepresentationThing + +=== tests/cases/compiler/reexporter.ts === +import { CustomHtmlRepresentationThing } from "./foo.html"; +>CustomHtmlRepresentationThing : typeof CustomHtmlRepresentationThing + +export function func() { +>func : () => CustomHtmlRepresentationThing + + return new CustomHtmlRepresentationThing(); +>new CustomHtmlRepresentationThing() : CustomHtmlRepresentationThing +>CustomHtmlRepresentationThing : typeof CustomHtmlRepresentationThing +} + +=== tests/cases/compiler/index.ts === +import { func } from "./reexporter"; +>func : () => import("tests/cases/compiler/foo.d.html").CustomHtmlRepresentationThing + +export const c = func(); +>c : import("tests/cases/compiler/foo.d.html").CustomHtmlRepresentationThing +>func() : import("tests/cases/compiler/foo.d.html").CustomHtmlRepresentationThing +>func : () => import("tests/cases/compiler/foo.d.html").CustomHtmlRepresentationThing + diff --git a/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.js b/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.js new file mode 100644 index 0000000000000..49237a2f361be --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.js @@ -0,0 +1,34 @@ +//// [tests/cases/conformance/nonjsExtensions/declarationFileForHtmlFileWithinDeclarationFile.ts] //// + +//// [component.d.html.ts] +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +export default doc; + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; + +export class HTML5Element extends HTMLElement { + connectedCallback(): void; +} + +//// [file.d.ts] +export * as mod from "./component.html"; + +//// [main.ts] +import { mod } from "./file.js"; + +window.customElements.define("my-html5-element", mod.HTML5Element); + +if (document !== mod.default) { + document.body.appendChild(mod.blogPost); +} + +//// [main.js] +import { mod } from "./file.js"; +window.customElements.define("my-html5-element", mod.HTML5Element); +if (document !== mod.default) { + document.body.appendChild(mod.blogPost); +} diff --git a/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.symbols b/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.symbols new file mode 100644 index 0000000000000..1bd80903c95fd --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.symbols @@ -0,0 +1,58 @@ +=== tests/cases/conformance/nonjsExtensions/component.d.html.ts === +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +>doc : Symbol(doc, Decl(component.d.html.ts, 3, 11)) +>Document : Symbol(Document, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +export default doc; +>doc : Symbol(doc, Decl(component.d.html.ts, 3, 11)) + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; +>blogPost : Symbol(blogPost, Decl(component.d.html.ts, 7, 12)) +>Element : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +export class HTML5Element extends HTMLElement { +>HTML5Element : Symbol(HTML5Element, Decl(component.d.html.ts, 7, 31)) +>HTMLElement : Symbol(HTMLElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + + connectedCallback(): void; +>connectedCallback : Symbol(HTML5Element.connectedCallback, Decl(component.d.html.ts, 9, 47)) +} + +=== tests/cases/conformance/nonjsExtensions/file.d.ts === +export * as mod from "./component.html"; +>mod : Symbol(mod, Decl(file.d.ts, 0, 6)) + +=== tests/cases/conformance/nonjsExtensions/main.ts === +import { mod } from "./file.js"; +>mod : Symbol(mod, Decl(main.ts, 0, 8)) + +window.customElements.define("my-html5-element", mod.HTML5Element); +>window.customElements.define : Symbol(CustomElementRegistry.define, Decl(lib.dom.d.ts, --, --)) +>window.customElements : Symbol(customElements, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>window : Symbol(window, Decl(lib.dom.d.ts, --, --)) +>customElements : Symbol(customElements, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>define : Symbol(CustomElementRegistry.define, Decl(lib.dom.d.ts, --, --)) +>mod.HTML5Element : Symbol(mod.HTML5Element, Decl(component.d.html.ts, 7, 31)) +>mod : Symbol(mod, Decl(main.ts, 0, 8)) +>HTML5Element : Symbol(mod.HTML5Element, Decl(component.d.html.ts, 7, 31)) + +if (document !== mod.default) { +>document : Symbol(document, Decl(lib.dom.d.ts, --, --)) +>mod.default : Symbol(mod.default, Decl(component.d.html.ts, 3, 26)) +>mod : Symbol(mod, Decl(main.ts, 0, 8)) +>default : Symbol(mod.default, Decl(component.d.html.ts, 3, 26)) + + document.body.appendChild(mod.blogPost); +>document.body.appendChild : Symbol(Node.appendChild, Decl(lib.dom.d.ts, --, --)) +>document.body : Symbol(Document.body, Decl(lib.dom.d.ts, --, --)) +>document : Symbol(document, Decl(lib.dom.d.ts, --, --)) +>body : Symbol(Document.body, Decl(lib.dom.d.ts, --, --)) +>appendChild : Symbol(Node.appendChild, Decl(lib.dom.d.ts, --, --)) +>mod.blogPost : Symbol(mod.blogPost, Decl(component.d.html.ts, 7, 12)) +>mod : Symbol(mod, Decl(main.ts, 0, 8)) +>blogPost : Symbol(mod.blogPost, Decl(component.d.html.ts, 7, 12)) +} diff --git a/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.types b/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.types new file mode 100644 index 0000000000000..03e203f6a6472 --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlFileWithinDeclarationFile.types @@ -0,0 +1,60 @@ +=== tests/cases/conformance/nonjsExtensions/component.d.html.ts === +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +>doc : Document + +export default doc; +>doc : Document + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; +>blogPost : Element + +export class HTML5Element extends HTMLElement { +>HTML5Element : HTML5Element +>HTMLElement : HTMLElement + + connectedCallback(): void; +>connectedCallback : () => void +} + +=== tests/cases/conformance/nonjsExtensions/file.d.ts === +export * as mod from "./component.html"; +>mod : typeof import("tests/cases/conformance/nonjsExtensions/component.d.html") + +=== tests/cases/conformance/nonjsExtensions/main.ts === +import { mod } from "./file.js"; +>mod : typeof mod + +window.customElements.define("my-html5-element", mod.HTML5Element); +>window.customElements.define("my-html5-element", mod.HTML5Element) : void +>window.customElements.define : (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions) => void +>window.customElements : CustomElementRegistry +>window : Window & typeof globalThis +>customElements : CustomElementRegistry +>define : (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions) => void +>"my-html5-element" : "my-html5-element" +>mod.HTML5Element : typeof mod.HTML5Element +>mod : typeof mod +>HTML5Element : typeof mod.HTML5Element + +if (document !== mod.default) { +>document !== mod.default : boolean +>document : Document +>mod.default : Document +>mod : typeof mod +>default : Document + + document.body.appendChild(mod.blogPost); +>document.body.appendChild(mod.blogPost) : Element +>document.body.appendChild : (node: T) => T +>document.body : HTMLElement +>document : Document +>body : HTMLElement +>appendChild : (node: T) => T +>mod.blogPost : Element +>mod : typeof mod +>blogPost : Element +} diff --git a/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).errors.txt b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).errors.txt new file mode 100644 index 0000000000000..27e300b25e21f --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).errors.txt @@ -0,0 +1,27 @@ +tests/cases/conformance/nonjsExtensions/file.ts(1,22): error TS6263: Module './component.html' was resolved to 'tests/cases/conformance/nonjsExtensions/component.d.html.ts', but '--allowArbitraryExtensions' is not set. + + +==== tests/cases/conformance/nonjsExtensions/component.d.html.ts (0 errors) ==== + // html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + + // per proposal, `default` is user-defined, but if not present, will be the document of the imported module + declare var doc: Document; + export default doc; + + // all other exports are just whatever was exported in module script blocks in the html file + export const blogPost: Element; + + export class HTML5Element extends HTMLElement { + connectedCallback(): void; + } + +==== tests/cases/conformance/nonjsExtensions/file.ts (1 errors) ==== + import * as mod from "./component.html"; + ~~~~~~~~~~~~~~~~~~ +!!! error TS6263: Module './component.html' was resolved to 'tests/cases/conformance/nonjsExtensions/component.d.html.ts', but '--allowArbitraryExtensions' is not set. + + window.customElements.define("my-html5-element", mod.HTML5Element); + + if (document !== mod.default) { + document.body.appendChild(mod.blogPost); + } \ No newline at end of file diff --git a/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).js b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).js new file mode 100644 index 0000000000000..73da1ab23557c --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/nonjsExtensions/declarationFileForHtmlImport.ts] //// + +//// [component.d.html.ts] +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +export default doc; + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; + +export class HTML5Element extends HTMLElement { + connectedCallback(): void; +} + +//// [file.ts] +import * as mod from "./component.html"; + +window.customElements.define("my-html5-element", mod.HTML5Element); + +if (document !== mod.default) { + document.body.appendChild(mod.blogPost); +} + +//// [file.js] +import * as mod from "./component.html"; +window.customElements.define("my-html5-element", mod.HTML5Element); +if (document !== mod.default) { + document.body.appendChild(mod.blogPost); +} diff --git a/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).symbols b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).symbols new file mode 100644 index 0000000000000..0f9ff4b370c06 --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).symbols @@ -0,0 +1,48 @@ +=== tests/cases/conformance/nonjsExtensions/component.d.html.ts === +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +>doc : Symbol(doc, Decl(component.d.html.ts, 3, 11)) +>Document : Symbol(Document, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +export default doc; +>doc : Symbol(doc, Decl(component.d.html.ts, 3, 11)) + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; +>blogPost : Symbol(blogPost, Decl(component.d.html.ts, 7, 12)) +>Element : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +export class HTML5Element extends HTMLElement { +>HTML5Element : Symbol(HTML5Element, Decl(component.d.html.ts, 7, 31)) +>HTMLElement : Symbol(HTMLElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + + connectedCallback(): void; +>connectedCallback : Symbol(HTML5Element.connectedCallback, Decl(component.d.html.ts, 9, 47)) +} + +=== tests/cases/conformance/nonjsExtensions/file.ts === +import * as mod from "./component.html"; +>mod : Symbol(mod, Decl(file.ts, 0, 6)) + +window.customElements.define("my-html5-element", mod.HTML5Element); +>window.customElements.define : Symbol(CustomElementRegistry.define, Decl(lib.dom.d.ts, --, --)) +>window.customElements : Symbol(customElements, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>window : Symbol(window, Decl(lib.dom.d.ts, --, --)) +>customElements : Symbol(customElements, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>define : Symbol(CustomElementRegistry.define, Decl(lib.dom.d.ts, --, --)) +>mod : Symbol(mod, Decl(file.ts, 0, 6)) + +if (document !== mod.default) { +>document : Symbol(document, Decl(lib.dom.d.ts, --, --)) +>mod : Symbol(mod, Decl(file.ts, 0, 6)) + + document.body.appendChild(mod.blogPost); +>document.body.appendChild : Symbol(Node.appendChild, Decl(lib.dom.d.ts, --, --)) +>document.body : Symbol(Document.body, Decl(lib.dom.d.ts, --, --)) +>document : Symbol(document, Decl(lib.dom.d.ts, --, --)) +>body : Symbol(Document.body, Decl(lib.dom.d.ts, --, --)) +>appendChild : Symbol(Node.appendChild, Decl(lib.dom.d.ts, --, --)) +>mod : Symbol(mod, Decl(file.ts, 0, 6)) +} diff --git a/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).types b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).types new file mode 100644 index 0000000000000..102e343691600 --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=false).types @@ -0,0 +1,56 @@ +=== tests/cases/conformance/nonjsExtensions/component.d.html.ts === +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +>doc : Document + +export default doc; +>doc : Document + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; +>blogPost : Element + +export class HTML5Element extends HTMLElement { +>HTML5Element : HTML5Element +>HTMLElement : HTMLElement + + connectedCallback(): void; +>connectedCallback : () => void +} + +=== tests/cases/conformance/nonjsExtensions/file.ts === +import * as mod from "./component.html"; +>mod : any + +window.customElements.define("my-html5-element", mod.HTML5Element); +>window.customElements.define("my-html5-element", mod.HTML5Element) : void +>window.customElements.define : (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions) => void +>window.customElements : CustomElementRegistry +>window : Window & typeof globalThis +>customElements : CustomElementRegistry +>define : (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions) => void +>"my-html5-element" : "my-html5-element" +>mod.HTML5Element : any +>mod : any +>HTML5Element : any + +if (document !== mod.default) { +>document !== mod.default : boolean +>document : Document +>mod.default : any +>mod : any +>default : any + + document.body.appendChild(mod.blogPost); +>document.body.appendChild(mod.blogPost) : any +>document.body.appendChild : (node: T) => T +>document.body : HTMLElement +>document : Document +>body : HTMLElement +>appendChild : (node: T) => T +>mod.blogPost : any +>mod : any +>blogPost : any +} diff --git a/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).js b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).js new file mode 100644 index 0000000000000..73da1ab23557c --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).js @@ -0,0 +1,31 @@ +//// [tests/cases/conformance/nonjsExtensions/declarationFileForHtmlImport.ts] //// + +//// [component.d.html.ts] +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +export default doc; + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; + +export class HTML5Element extends HTMLElement { + connectedCallback(): void; +} + +//// [file.ts] +import * as mod from "./component.html"; + +window.customElements.define("my-html5-element", mod.HTML5Element); + +if (document !== mod.default) { + document.body.appendChild(mod.blogPost); +} + +//// [file.js] +import * as mod from "./component.html"; +window.customElements.define("my-html5-element", mod.HTML5Element); +if (document !== mod.default) { + document.body.appendChild(mod.blogPost); +} diff --git a/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).symbols b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).symbols new file mode 100644 index 0000000000000..13a274d4b3288 --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).symbols @@ -0,0 +1,54 @@ +=== tests/cases/conformance/nonjsExtensions/component.d.html.ts === +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +>doc : Symbol(doc, Decl(component.d.html.ts, 3, 11)) +>Document : Symbol(Document, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +export default doc; +>doc : Symbol(doc, Decl(component.d.html.ts, 3, 11)) + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; +>blogPost : Symbol(blogPost, Decl(component.d.html.ts, 7, 12)) +>Element : Symbol(Element, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + +export class HTML5Element extends HTMLElement { +>HTML5Element : Symbol(HTML5Element, Decl(component.d.html.ts, 7, 31)) +>HTMLElement : Symbol(HTMLElement, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) + + connectedCallback(): void; +>connectedCallback : Symbol(HTML5Element.connectedCallback, Decl(component.d.html.ts, 9, 47)) +} + +=== tests/cases/conformance/nonjsExtensions/file.ts === +import * as mod from "./component.html"; +>mod : Symbol(mod, Decl(file.ts, 0, 6)) + +window.customElements.define("my-html5-element", mod.HTML5Element); +>window.customElements.define : Symbol(CustomElementRegistry.define, Decl(lib.dom.d.ts, --, --)) +>window.customElements : Symbol(customElements, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>window : Symbol(window, Decl(lib.dom.d.ts, --, --)) +>customElements : Symbol(customElements, Decl(lib.dom.d.ts, --, --), Decl(lib.dom.d.ts, --, --)) +>define : Symbol(CustomElementRegistry.define, Decl(lib.dom.d.ts, --, --)) +>mod.HTML5Element : Symbol(mod.HTML5Element, Decl(component.d.html.ts, 7, 31)) +>mod : Symbol(mod, Decl(file.ts, 0, 6)) +>HTML5Element : Symbol(mod.HTML5Element, Decl(component.d.html.ts, 7, 31)) + +if (document !== mod.default) { +>document : Symbol(document, Decl(lib.dom.d.ts, --, --)) +>mod.default : Symbol(mod.default, Decl(component.d.html.ts, 3, 26)) +>mod : Symbol(mod, Decl(file.ts, 0, 6)) +>default : Symbol(mod.default, Decl(component.d.html.ts, 3, 26)) + + document.body.appendChild(mod.blogPost); +>document.body.appendChild : Symbol(Node.appendChild, Decl(lib.dom.d.ts, --, --)) +>document.body : Symbol(Document.body, Decl(lib.dom.d.ts, --, --)) +>document : Symbol(document, Decl(lib.dom.d.ts, --, --)) +>body : Symbol(Document.body, Decl(lib.dom.d.ts, --, --)) +>appendChild : Symbol(Node.appendChild, Decl(lib.dom.d.ts, --, --)) +>mod.blogPost : Symbol(mod.blogPost, Decl(component.d.html.ts, 7, 12)) +>mod : Symbol(mod, Decl(file.ts, 0, 6)) +>blogPost : Symbol(mod.blogPost, Decl(component.d.html.ts, 7, 12)) +} diff --git a/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).types b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).types new file mode 100644 index 0000000000000..50778d2a0450c --- /dev/null +++ b/tests/baselines/reference/declarationFileForHtmlImport(allowarbitraryextensions=true).types @@ -0,0 +1,56 @@ +=== tests/cases/conformance/nonjsExtensions/component.d.html.ts === +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +>doc : Document + +export default doc; +>doc : Document + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; +>blogPost : Element + +export class HTML5Element extends HTMLElement { +>HTML5Element : HTML5Element +>HTMLElement : HTMLElement + + connectedCallback(): void; +>connectedCallback : () => void +} + +=== tests/cases/conformance/nonjsExtensions/file.ts === +import * as mod from "./component.html"; +>mod : typeof mod + +window.customElements.define("my-html5-element", mod.HTML5Element); +>window.customElements.define("my-html5-element", mod.HTML5Element) : void +>window.customElements.define : (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions) => void +>window.customElements : CustomElementRegistry +>window : Window & typeof globalThis +>customElements : CustomElementRegistry +>define : (name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions) => void +>"my-html5-element" : "my-html5-element" +>mod.HTML5Element : typeof mod.HTML5Element +>mod : typeof mod +>HTML5Element : typeof mod.HTML5Element + +if (document !== mod.default) { +>document !== mod.default : boolean +>document : Document +>mod.default : Document +>mod : typeof mod +>default : Document + + document.body.appendChild(mod.blogPost); +>document.body.appendChild(mod.blogPost) : Element +>document.body.appendChild : (node: T) => T +>document.body : HTMLElement +>document : Document +>body : HTMLElement +>appendChild : (node: T) => T +>mod.blogPost : Element +>mod : typeof mod +>blogPost : Element +} diff --git a/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).js b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).js new file mode 100644 index 0000000000000..194d17c7ce6ba --- /dev/null +++ b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/nonjsExtensions/declarationFileForJsonImport.ts] //// + +//// [main.ts] +import data from "./data.json"; +let x: string = data; +//// [data.json] +{} +//// [data.d.json.ts] +declare var val: string; +export default val; + +//// [main.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var data_json_1 = require("./data.json"); +var x = data_json_1.default; diff --git a/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).symbols b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).symbols new file mode 100644 index 0000000000000..4dfc9b6d1ad28 --- /dev/null +++ b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).symbols @@ -0,0 +1,15 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import data from "./data.json"; +>data : Symbol(data, Decl(main.ts, 0, 6)) + +let x: string = data; +>x : Symbol(x, Decl(main.ts, 1, 3)) +>data : Symbol(data, Decl(main.ts, 0, 6)) + +=== tests/cases/conformance/nonjsExtensions/data.d.json.ts === +declare var val: string; +>val : Symbol(val, Decl(data.d.json.ts, 0, 11)) + +export default val; +>val : Symbol(val, Decl(data.d.json.ts, 0, 11)) + diff --git a/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).types b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).types new file mode 100644 index 0000000000000..0ae614bbe9b6a --- /dev/null +++ b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=false).types @@ -0,0 +1,15 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import data from "./data.json"; +>data : string + +let x: string = data; +>x : string +>data : string + +=== tests/cases/conformance/nonjsExtensions/data.d.json.ts === +declare var val: string; +>val : string + +export default val; +>val : string + diff --git a/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).js b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).js new file mode 100644 index 0000000000000..194d17c7ce6ba --- /dev/null +++ b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).js @@ -0,0 +1,16 @@ +//// [tests/cases/conformance/nonjsExtensions/declarationFileForJsonImport.ts] //// + +//// [main.ts] +import data from "./data.json"; +let x: string = data; +//// [data.json] +{} +//// [data.d.json.ts] +declare var val: string; +export default val; + +//// [main.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var data_json_1 = require("./data.json"); +var x = data_json_1.default; diff --git a/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).symbols b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).symbols new file mode 100644 index 0000000000000..4dfc9b6d1ad28 --- /dev/null +++ b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).symbols @@ -0,0 +1,15 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import data from "./data.json"; +>data : Symbol(data, Decl(main.ts, 0, 6)) + +let x: string = data; +>x : Symbol(x, Decl(main.ts, 1, 3)) +>data : Symbol(data, Decl(main.ts, 0, 6)) + +=== tests/cases/conformance/nonjsExtensions/data.d.json.ts === +declare var val: string; +>val : Symbol(val, Decl(data.d.json.ts, 0, 11)) + +export default val; +>val : Symbol(val, Decl(data.d.json.ts, 0, 11)) + diff --git a/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).types b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).types new file mode 100644 index 0000000000000..0ae614bbe9b6a --- /dev/null +++ b/tests/baselines/reference/declarationFileForJsonImport(resolvejsonmodule=true).types @@ -0,0 +1,15 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import data from "./data.json"; +>data : string + +let x: string = data; +>x : string +>data : string + +=== tests/cases/conformance/nonjsExtensions/data.d.json.ts === +declare var val: string; +>val : string + +export default val; +>val : string + diff --git a/tests/baselines/reference/declarationFileForTsJsImport.errors.txt b/tests/baselines/reference/declarationFileForTsJsImport.errors.txt new file mode 100644 index 0000000000000..9acc28949a14d --- /dev/null +++ b/tests/baselines/reference/declarationFileForTsJsImport.errors.txt @@ -0,0 +1,89 @@ +tests/cases/conformance/nonjsExtensions/main.ts(1,18): error TS2307: Cannot find module './file.js' or its corresponding type declarations. +tests/cases/conformance/nonjsExtensions/main.ts(2,18): error TS2307: Cannot find module './file.jsx' or its corresponding type declarations. +tests/cases/conformance/nonjsExtensions/main.ts(3,18): error TS2691: An import path cannot end with a '.ts' extension. Consider importing './file.js' instead. +tests/cases/conformance/nonjsExtensions/main.ts(4,18): error TS2691: An import path cannot end with a '.tsx' extension. Consider importing './file.js' instead. +tests/cases/conformance/nonjsExtensions/main.ts(5,18): error TS2307: Cannot find module './file.mjs' or its corresponding type declarations. +tests/cases/conformance/nonjsExtensions/main.ts(6,18): error TS2307: Cannot find module './file.cjs' or its corresponding type declarations. +tests/cases/conformance/nonjsExtensions/main.ts(7,18): error TS2691: An import path cannot end with a '.mts' extension. Consider importing './file.mjs' instead. +tests/cases/conformance/nonjsExtensions/main.ts(8,18): error TS2691: An import path cannot end with a '.cts' extension. Consider importing './file.cjs' instead. +tests/cases/conformance/nonjsExtensions/main.ts(9,18): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './file.js' instead. +tests/cases/conformance/nonjsExtensions/main.ts(10,19): error TS2691: An import path cannot end with a '.d.cts' extension. Consider importing './file.js' instead. +tests/cases/conformance/nonjsExtensions/main.ts(11,19): error TS2691: An import path cannot end with a '.d.mts' extension. Consider importing './file.js' instead. +tests/cases/conformance/nonjsExtensions/main.ts(12,19): error TS2691: An import path cannot end with a '.ts' extension. Consider importing './file.d.json.js' instead. + + +==== tests/cases/conformance/nonjsExtensions/package.json (0 errors) ==== + {"type": "module"} +==== tests/cases/conformance/nonjsExtensions/main.ts (12 errors) ==== + import def1 from "./file.js"; + ~~~~~~~~~~~ +!!! error TS2307: Cannot find module './file.js' or its corresponding type declarations. + import def2 from "./file.jsx"; + ~~~~~~~~~~~~ +!!! error TS2307: Cannot find module './file.jsx' or its corresponding type declarations. + import def3 from "./file.ts"; + ~~~~~~~~~~~ +!!! error TS2691: An import path cannot end with a '.ts' extension. Consider importing './file.js' instead. + import def4 from "./file.tsx"; + ~~~~~~~~~~~~ +!!! error TS2691: An import path cannot end with a '.tsx' extension. Consider importing './file.js' instead. + import def5 from "./file.mjs"; + ~~~~~~~~~~~~ +!!! error TS2307: Cannot find module './file.mjs' or its corresponding type declarations. + import def6 from "./file.cjs"; + ~~~~~~~~~~~~ +!!! error TS2307: Cannot find module './file.cjs' or its corresponding type declarations. + import def7 from "./file.mts"; + ~~~~~~~~~~~~ +!!! error TS2691: An import path cannot end with a '.mts' extension. Consider importing './file.mjs' instead. + import def8 from "./file.cts"; + ~~~~~~~~~~~~ +!!! error TS2691: An import path cannot end with a '.cts' extension. Consider importing './file.cjs' instead. + import def9 from "./file.d.ts"; + ~~~~~~~~~~~~~ +!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './file.js' instead. + import def10 from "./file.d.cts"; + ~~~~~~~~~~~~~~ +!!! error TS2691: An import path cannot end with a '.d.cts' extension. Consider importing './file.js' instead. + import def11 from "./file.d.mts"; + ~~~~~~~~~~~~~~ +!!! error TS2691: An import path cannot end with a '.d.mts' extension. Consider importing './file.js' instead. + import def12 from "./file.d.json.ts"; + ~~~~~~~~~~~~~~~~~~ +!!! error TS2691: An import path cannot end with a '.ts' extension. Consider importing './file.d.json.js' instead. +==== tests/cases/conformance/nonjsExtensions/file.d.js.ts (0 errors) ==== + declare var bad: "bad1"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.jsx.ts (0 errors) ==== + declare var bad: "bad2"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.ts.ts (0 errors) ==== + declare var bad: "bad3"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.tsx.ts (0 errors) ==== + declare var bad: "bad4"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.mjs.ts (0 errors) ==== + declare var bad: "bad5"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.cjs.ts (0 errors) ==== + declare var bad: "bad6"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.mts.ts (0 errors) ==== + declare var bad: "bad7"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.cts.ts (0 errors) ==== + declare var bad: "bad8"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.d.ts.ts (0 errors) ==== + declare var bad: "bad9"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.d.mts.ts (0 errors) ==== + declare var bad: "bad10"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.d.cts.ts (0 errors) ==== + declare var bad: "bad11"; + export default bad; +==== tests/cases/conformance/nonjsExtensions/file.d.d.json.ts (0 errors) ==== + declare var bad: "bad12"; + export default bad; \ No newline at end of file diff --git a/tests/baselines/reference/declarationFileForTsJsImport.js b/tests/baselines/reference/declarationFileForTsJsImport.js new file mode 100644 index 0000000000000..aec21f826cdf3 --- /dev/null +++ b/tests/baselines/reference/declarationFileForTsJsImport.js @@ -0,0 +1,56 @@ +//// [tests/cases/conformance/nonjsExtensions/declarationFileForTsJsImport.ts] //// + +//// [package.json] +{"type": "module"} +//// [main.ts] +import def1 from "./file.js"; +import def2 from "./file.jsx"; +import def3 from "./file.ts"; +import def4 from "./file.tsx"; +import def5 from "./file.mjs"; +import def6 from "./file.cjs"; +import def7 from "./file.mts"; +import def8 from "./file.cts"; +import def9 from "./file.d.ts"; +import def10 from "./file.d.cts"; +import def11 from "./file.d.mts"; +import def12 from "./file.d.json.ts"; +//// [file.d.js.ts] +declare var bad: "bad1"; +export default bad; +//// [file.d.jsx.ts] +declare var bad: "bad2"; +export default bad; +//// [file.d.ts.ts] +declare var bad: "bad3"; +export default bad; +//// [file.d.tsx.ts] +declare var bad: "bad4"; +export default bad; +//// [file.d.mjs.ts] +declare var bad: "bad5"; +export default bad; +//// [file.d.cjs.ts] +declare var bad: "bad6"; +export default bad; +//// [file.d.mts.ts] +declare var bad: "bad7"; +export default bad; +//// [file.d.cts.ts] +declare var bad: "bad8"; +export default bad; +//// [file.d.d.ts.ts] +declare var bad: "bad9"; +export default bad; +//// [file.d.d.mts.ts] +declare var bad: "bad10"; +export default bad; +//// [file.d.d.cts.ts] +declare var bad: "bad11"; +export default bad; +//// [file.d.d.json.ts] +declare var bad: "bad12"; +export default bad; + +//// [main.js] +export {}; diff --git a/tests/baselines/reference/declarationFileForTsJsImport.symbols b/tests/baselines/reference/declarationFileForTsJsImport.symbols new file mode 100644 index 0000000000000..b1dab3a051851 --- /dev/null +++ b/tests/baselines/reference/declarationFileForTsJsImport.symbols @@ -0,0 +1,121 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import def1 from "./file.js"; +>def1 : Symbol(def1, Decl(main.ts, 0, 6)) + +import def2 from "./file.jsx"; +>def2 : Symbol(def2, Decl(main.ts, 1, 6)) + +import def3 from "./file.ts"; +>def3 : Symbol(def3, Decl(main.ts, 2, 6)) + +import def4 from "./file.tsx"; +>def4 : Symbol(def4, Decl(main.ts, 3, 6)) + +import def5 from "./file.mjs"; +>def5 : Symbol(def5, Decl(main.ts, 4, 6)) + +import def6 from "./file.cjs"; +>def6 : Symbol(def6, Decl(main.ts, 5, 6)) + +import def7 from "./file.mts"; +>def7 : Symbol(def7, Decl(main.ts, 6, 6)) + +import def8 from "./file.cts"; +>def8 : Symbol(def8, Decl(main.ts, 7, 6)) + +import def9 from "./file.d.ts"; +>def9 : Symbol(def9, Decl(main.ts, 8, 6)) + +import def10 from "./file.d.cts"; +>def10 : Symbol(def10, Decl(main.ts, 9, 6)) + +import def11 from "./file.d.mts"; +>def11 : Symbol(def11, Decl(main.ts, 10, 6)) + +import def12 from "./file.d.json.ts"; +>def12 : Symbol(def12, Decl(main.ts, 11, 6)) + +=== tests/cases/conformance/nonjsExtensions/file.d.js.ts === +declare var bad: "bad1"; +>bad : Symbol(bad, Decl(file.d.js.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.js.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.jsx.ts === +declare var bad: "bad2"; +>bad : Symbol(bad, Decl(file.d.jsx.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.jsx.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.ts.ts === +declare var bad: "bad3"; +>bad : Symbol(bad, Decl(file.d.ts.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.ts.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.tsx.ts === +declare var bad: "bad4"; +>bad : Symbol(bad, Decl(file.d.tsx.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.tsx.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.mjs.ts === +declare var bad: "bad5"; +>bad : Symbol(bad, Decl(file.d.mjs.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.mjs.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.cjs.ts === +declare var bad: "bad6"; +>bad : Symbol(bad, Decl(file.d.cjs.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.cjs.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.mts.ts === +declare var bad: "bad7"; +>bad : Symbol(bad, Decl(file.d.mts.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.mts.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.cts.ts === +declare var bad: "bad8"; +>bad : Symbol(bad, Decl(file.d.cts.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.cts.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.d.ts.ts === +declare var bad: "bad9"; +>bad : Symbol(bad, Decl(file.d.d.ts.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.d.ts.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.d.mts.ts === +declare var bad: "bad10"; +>bad : Symbol(bad, Decl(file.d.d.mts.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.d.mts.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.d.cts.ts === +declare var bad: "bad11"; +>bad : Symbol(bad, Decl(file.d.d.cts.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.d.cts.ts, 0, 11)) + +=== tests/cases/conformance/nonjsExtensions/file.d.d.json.ts === +declare var bad: "bad12"; +>bad : Symbol(bad, Decl(file.d.d.json.ts, 0, 11)) + +export default bad; +>bad : Symbol(bad, Decl(file.d.d.json.ts, 0, 11)) + diff --git a/tests/baselines/reference/declarationFileForTsJsImport.types b/tests/baselines/reference/declarationFileForTsJsImport.types new file mode 100644 index 0000000000000..d189f656f9be1 --- /dev/null +++ b/tests/baselines/reference/declarationFileForTsJsImport.types @@ -0,0 +1,121 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import def1 from "./file.js"; +>def1 : any + +import def2 from "./file.jsx"; +>def2 : any + +import def3 from "./file.ts"; +>def3 : any + +import def4 from "./file.tsx"; +>def4 : any + +import def5 from "./file.mjs"; +>def5 : any + +import def6 from "./file.cjs"; +>def6 : any + +import def7 from "./file.mts"; +>def7 : any + +import def8 from "./file.cts"; +>def8 : any + +import def9 from "./file.d.ts"; +>def9 : any + +import def10 from "./file.d.cts"; +>def10 : any + +import def11 from "./file.d.mts"; +>def11 : any + +import def12 from "./file.d.json.ts"; +>def12 : any + +=== tests/cases/conformance/nonjsExtensions/file.d.js.ts === +declare var bad: "bad1"; +>bad : "bad1" + +export default bad; +>bad : "bad1" + +=== tests/cases/conformance/nonjsExtensions/file.d.jsx.ts === +declare var bad: "bad2"; +>bad : "bad2" + +export default bad; +>bad : "bad2" + +=== tests/cases/conformance/nonjsExtensions/file.d.ts.ts === +declare var bad: "bad3"; +>bad : "bad3" + +export default bad; +>bad : "bad3" + +=== tests/cases/conformance/nonjsExtensions/file.d.tsx.ts === +declare var bad: "bad4"; +>bad : "bad4" + +export default bad; +>bad : "bad4" + +=== tests/cases/conformance/nonjsExtensions/file.d.mjs.ts === +declare var bad: "bad5"; +>bad : "bad5" + +export default bad; +>bad : "bad5" + +=== tests/cases/conformance/nonjsExtensions/file.d.cjs.ts === +declare var bad: "bad6"; +>bad : "bad6" + +export default bad; +>bad : "bad6" + +=== tests/cases/conformance/nonjsExtensions/file.d.mts.ts === +declare var bad: "bad7"; +>bad : "bad7" + +export default bad; +>bad : "bad7" + +=== tests/cases/conformance/nonjsExtensions/file.d.cts.ts === +declare var bad: "bad8"; +>bad : "bad8" + +export default bad; +>bad : "bad8" + +=== tests/cases/conformance/nonjsExtensions/file.d.d.ts.ts === +declare var bad: "bad9"; +>bad : "bad9" + +export default bad; +>bad : "bad9" + +=== tests/cases/conformance/nonjsExtensions/file.d.d.mts.ts === +declare var bad: "bad10"; +>bad : "bad10" + +export default bad; +>bad : "bad10" + +=== tests/cases/conformance/nonjsExtensions/file.d.d.cts.ts === +declare var bad: "bad11"; +>bad : "bad11" + +export default bad; +>bad : "bad11" + +=== tests/cases/conformance/nonjsExtensions/file.d.d.json.ts === +declare var bad: "bad12"; +>bad : "bad12" + +export default bad; +>bad : "bad12" + diff --git a/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).errors.txt b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).errors.txt new file mode 100644 index 0000000000000..8322de69e5a8f --- /dev/null +++ b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).errors.txt @@ -0,0 +1,15 @@ +tests/cases/conformance/nonjsExtensions/main.ts(1,22): error TS6263: Module './dir/native.node' was resolved to 'tests/cases/conformance/nonjsExtensions/dir/native.d.node.ts', but '--allowArbitraryExtensions' is not set. + + +==== tests/cases/conformance/nonjsExtensions/main.ts (1 errors) ==== + import mod = require("./dir/native.node"); + ~~~~~~~~~~~~~~~~~~~ +!!! error TS6263: Module './dir/native.node' was resolved to 'tests/cases/conformance/nonjsExtensions/dir/native.d.node.ts', but '--allowArbitraryExtensions' is not set. + mod.doNativeThing("good"); + +==== tests/cases/conformance/nonjsExtensions/package.json (0 errors) ==== + {"type": "module"} +==== tests/cases/conformance/nonjsExtensions/dir/package.json (0 errors) ==== + {"type": "commonjs"} +==== tests/cases/conformance/nonjsExtensions/dir/native.d.node.ts (0 errors) ==== + export function doNativeThing(flag: string): unknown; \ No newline at end of file diff --git a/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).js b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).js new file mode 100644 index 0000000000000..0db936c68b811 --- /dev/null +++ b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/nonjsExtensions/declarationFilesForNodeNativeModules.ts] //// + +//// [package.json] +{"type": "module"} +//// [package.json] +{"type": "commonjs"} +//// [native.d.node.ts] +export function doNativeThing(flag: string): unknown; +//// [main.ts] +import mod = require("./dir/native.node"); +mod.doNativeThing("good"); + + +//// [main.js] +import { createRequire as _createRequire } from "module"; +const __require = _createRequire(import.meta.url); +const mod = __require("./dir/native.node"); +mod.doNativeThing("good"); diff --git a/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).symbols b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).symbols new file mode 100644 index 0000000000000..abf9cb08a7e09 --- /dev/null +++ b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).symbols @@ -0,0 +1,7 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import mod = require("./dir/native.node"); +>mod : Symbol(mod, Decl(main.ts, 0, 0)) + +mod.doNativeThing("good"); +>mod : Symbol(mod, Decl(main.ts, 0, 0)) + diff --git a/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).types b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).types new file mode 100644 index 0000000000000..09c95835fe294 --- /dev/null +++ b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=false).types @@ -0,0 +1,11 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import mod = require("./dir/native.node"); +>mod : any + +mod.doNativeThing("good"); +>mod.doNativeThing("good") : any +>mod.doNativeThing : any +>mod : any +>doNativeThing : any +>"good" : "good" + diff --git a/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).js b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).js new file mode 100644 index 0000000000000..0db936c68b811 --- /dev/null +++ b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).js @@ -0,0 +1,18 @@ +//// [tests/cases/conformance/nonjsExtensions/declarationFilesForNodeNativeModules.ts] //// + +//// [package.json] +{"type": "module"} +//// [package.json] +{"type": "commonjs"} +//// [native.d.node.ts] +export function doNativeThing(flag: string): unknown; +//// [main.ts] +import mod = require("./dir/native.node"); +mod.doNativeThing("good"); + + +//// [main.js] +import { createRequire as _createRequire } from "module"; +const __require = _createRequire(import.meta.url); +const mod = __require("./dir/native.node"); +mod.doNativeThing("good"); diff --git a/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).symbols b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).symbols new file mode 100644 index 0000000000000..676d3ee4c213c --- /dev/null +++ b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).symbols @@ -0,0 +1,14 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import mod = require("./dir/native.node"); +>mod : Symbol(mod, Decl(main.ts, 0, 0)) + +mod.doNativeThing("good"); +>mod.doNativeThing : Symbol(mod.doNativeThing, Decl(native.d.node.ts, 0, 0)) +>mod : Symbol(mod, Decl(main.ts, 0, 0)) +>doNativeThing : Symbol(mod.doNativeThing, Decl(native.d.node.ts, 0, 0)) + +=== tests/cases/conformance/nonjsExtensions/dir/native.d.node.ts === +export function doNativeThing(flag: string): unknown; +>doNativeThing : Symbol(doNativeThing, Decl(native.d.node.ts, 0, 0)) +>flag : Symbol(flag, Decl(native.d.node.ts, 0, 30)) + diff --git a/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).types b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).types new file mode 100644 index 0000000000000..2c738663dfc7b --- /dev/null +++ b/tests/baselines/reference/declarationFilesForNodeNativeModules(allowarbitraryextensions=true).types @@ -0,0 +1,16 @@ +=== tests/cases/conformance/nonjsExtensions/main.ts === +import mod = require("./dir/native.node"); +>mod : typeof mod + +mod.doNativeThing("good"); +>mod.doNativeThing("good") : unknown +>mod.doNativeThing : (flag: string) => unknown +>mod : typeof mod +>doNativeThing : (flag: string) => unknown +>"good" : "good" + +=== tests/cases/conformance/nonjsExtensions/dir/native.d.node.ts === +export function doNativeThing(flag: string): unknown; +>doNativeThing : (flag: string) => unknown +>flag : string + diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.errors.txt b/tests/baselines/reference/decoratorOnClassConstructor2.errors.txt index 603c449aeb466..2ea50d9a8c949 100644 --- a/tests/baselines/reference/decoratorOnClassConstructor2.errors.txt +++ b/tests/baselines/reference/decoratorOnClassConstructor2.errors.txt @@ -1,5 +1,5 @@ -tests/cases/conformance/decorators/class/constructor/2.ts(1,20): error TS2691: An import path cannot end with a '.ts' extension. Consider importing './0' instead. -tests/cases/conformance/decorators/class/constructor/2.ts(2,19): error TS2691: An import path cannot end with a '.ts' extension. Consider importing './0' instead. +tests/cases/conformance/decorators/class/constructor/2.ts(1,20): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. +tests/cases/conformance/decorators/class/constructor/2.ts(2,19): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. ==== tests/cases/conformance/decorators/class/constructor/0.ts (0 errors) ==== @@ -9,10 +9,10 @@ tests/cases/conformance/decorators/class/constructor/2.ts(2,19): error TS2691: A ==== tests/cases/conformance/decorators/class/constructor/2.ts (2 errors) ==== import {base} from "./0.ts" ~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.ts' extension. Consider importing './0' instead. +!!! error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. import {foo} from "./0.ts" ~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.ts' extension. Consider importing './0' instead. +!!! error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. export class C extends base{ constructor(@foo prop: any) { super(); diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.symbols b/tests/baselines/reference/decoratorOnClassConstructor2.symbols index de782500d87c5..7ef2e54637990 100644 --- a/tests/baselines/reference/decoratorOnClassConstructor2.symbols +++ b/tests/baselines/reference/decoratorOnClassConstructor2.symbols @@ -25,5 +25,6 @@ export class C extends base{ >prop : Symbol(prop, Decl(2.ts, 3, 16)) super(); +>super : Symbol(base, Decl(0.ts, 0, 0)) } } diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.types b/tests/baselines/reference/decoratorOnClassConstructor2.types index 60e5506d3cd87..7d0460b4cb6cf 100644 --- a/tests/baselines/reference/decoratorOnClassConstructor2.types +++ b/tests/baselines/reference/decoratorOnClassConstructor2.types @@ -10,21 +10,21 @@ export function foo(target: Object, propertyKey: string | symbol, parameterIndex === tests/cases/conformance/decorators/class/constructor/2.ts === import {base} from "./0.ts" ->base : any +>base : typeof base import {foo} from "./0.ts" ->foo : any +>foo : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void export class C extends base{ >C : C ->base : any +>base : base constructor(@foo prop: any) { ->foo : any +>foo : (target: Object, propertyKey: string | symbol, parameterIndex: number) => void >prop : any super(); >super() : void ->super : any +>super : typeof base } } diff --git a/tests/baselines/reference/moduleNodeNextImportFix.baseline b/tests/baselines/reference/moduleNodeNextImportFix.baseline index 5f000f3f10fa1..09260962708d3 100644 --- a/tests/baselines/reference/moduleNodeNextImportFix.baseline +++ b/tests/baselines/reference/moduleNodeNextImportFix.baseline @@ -10,13 +10,13 @@ Syntactic Diagnostics for file '/tests/cases/fourslash/moduleNodeNextImportFix.t export function util() {} Semantic Diagnostics for file '/tests/cases/fourslash/moduleNodeNextImportFix.ts': -/tests/cases/fourslash/src/index.mts(1,22): error TS2691: An import path cannot end with a '.mts' extension. Consider importing './deps.mjs' instead. +/tests/cases/fourslash/src/index.mts(1,22): error TS5097: An import path can only end with a '.mts' extension when 'allowImportingTsExtensions' is enabled. ==== /tests/cases/fourslash/src/index.mts (1 errors) ==== import { util } from './deps.mts' ~~~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.mts' extension. Consider importing './deps.mjs' instead. +!!! error TS5097: An import path can only end with a '.mts' extension when 'allowImportingTsExtensions' is enabled. export function main() { util() } diff --git a/tests/baselines/reference/moduleResolutionNoTsCJS.errors.txt b/tests/baselines/reference/moduleResolutionNoTsCJS.errors.txt index 0da402020af80..0b2ff8b975722 100644 --- a/tests/baselines/reference/moduleResolutionNoTsCJS.errors.txt +++ b/tests/baselines/reference/moduleResolutionNoTsCJS.errors.txt @@ -1,6 +1,6 @@ -tests/cases/compiler/user.ts(1,15): error TS2691: An import path cannot end with a '.ts' extension. Consider importing './x' instead. -tests/cases/compiler/user.ts(2,15): error TS2691: An import path cannot end with a '.tsx' extension. Consider importing './y' instead. -tests/cases/compiler/user.ts(3,15): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './z' instead. +tests/cases/compiler/user.ts(1,15): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. +tests/cases/compiler/user.ts(2,15): error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled. +tests/cases/compiler/user.ts(3,15): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './z' instead? ==== tests/cases/compiler/x.ts (0 errors) ==== @@ -18,13 +18,13 @@ tests/cases/compiler/user.ts(3,15): error TS2691: An import path cannot end with ==== tests/cases/compiler/user.ts (3 errors) ==== import x from "./x.ts"; ~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.ts' extension. Consider importing './x' instead. +!!! error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. import y from "./y.tsx"; ~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.tsx' extension. Consider importing './y' instead. +!!! error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled. import z from "./z.d.ts"; ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './z' instead. +!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './z' instead? // Making sure the suggested fixes are valid: import x2 from "./x"; diff --git a/tests/baselines/reference/moduleResolutionNoTsCJS.types b/tests/baselines/reference/moduleResolutionNoTsCJS.types index 4a7a1c89564c2..e1bab76860516 100644 --- a/tests/baselines/reference/moduleResolutionNoTsCJS.types +++ b/tests/baselines/reference/moduleResolutionNoTsCJS.types @@ -17,13 +17,13 @@ export default x; === tests/cases/compiler/user.ts === import x from "./x.ts"; ->x : any +>x : 0 import y from "./y.tsx"; ->y : any +>y : 0 import z from "./z.d.ts"; ->z : any +>z : number // Making sure the suggested fixes are valid: import x2 from "./x"; diff --git a/tests/baselines/reference/moduleResolutionNoTsESM.errors.txt b/tests/baselines/reference/moduleResolutionNoTsESM.errors.txt index 6c067f2a5c571..6c5b7451e1abf 100644 --- a/tests/baselines/reference/moduleResolutionNoTsESM.errors.txt +++ b/tests/baselines/reference/moduleResolutionNoTsESM.errors.txt @@ -1,6 +1,6 @@ -tests/cases/compiler/user.ts(1,15): error TS2691: An import path cannot end with a '.ts' extension. Consider importing './x.js' instead. -tests/cases/compiler/user.ts(2,15): error TS2691: An import path cannot end with a '.tsx' extension. Consider importing './y.js' instead. -tests/cases/compiler/user.ts(3,15): error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './z.js' instead. +tests/cases/compiler/user.ts(1,15): error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. +tests/cases/compiler/user.ts(2,15): error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled. +tests/cases/compiler/user.ts(3,15): error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './z.js' instead? ==== tests/cases/compiler/x.ts (0 errors) ==== @@ -18,13 +18,13 @@ tests/cases/compiler/user.ts(3,15): error TS2691: An import path cannot end with ==== tests/cases/compiler/user.ts (3 errors) ==== import x from "./x.ts"; ~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.ts' extension. Consider importing './x.js' instead. +!!! error TS5097: An import path can only end with a '.ts' extension when 'allowImportingTsExtensions' is enabled. import y from "./y.tsx"; ~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.tsx' extension. Consider importing './y.js' instead. +!!! error TS5097: An import path can only end with a '.tsx' extension when 'allowImportingTsExtensions' is enabled. import z from "./z.d.ts"; ~~~~~~~~~~ -!!! error TS2691: An import path cannot end with a '.d.ts' extension. Consider importing './z.js' instead. +!!! error TS2846: A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file './z.js' instead? // Making sure the suggested fixes are valid: import x2 from "./x"; diff --git a/tests/baselines/reference/moduleResolutionNoTsESM.types b/tests/baselines/reference/moduleResolutionNoTsESM.types index 4ff610e49fda5..5906bf64395c0 100644 --- a/tests/baselines/reference/moduleResolutionNoTsESM.types +++ b/tests/baselines/reference/moduleResolutionNoTsESM.types @@ -17,13 +17,13 @@ export default x; === tests/cases/compiler/user.ts === import x from "./x.ts"; ->x : any +>x : 0 import y from "./y.tsx"; ->y : any +>y : 0 import z from "./z.d.ts"; ->z : any +>z : number // Making sure the suggested fixes are valid: import x2 from "./x"; diff --git a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json index 3e6f849e8eaee..b2d80118a7afa 100644 --- a/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json +++ b/tests/baselines/reference/moduleResolutionWithExtensions_unexpected.trace.json @@ -3,6 +3,8 @@ "Module resolution kind is not specified, using 'Node10'.", "Loading module 'normalize.css' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Found 'package.json' at '/node_modules/normalize.css/package.json'.", + "File name '/node_modules/normalize.css' has a '.css' extension - stripping it.", + "File '/node_modules/normalize.d.css.ts' does not exist.", "File '/node_modules/normalize.css.ts' does not exist.", "File '/node_modules/normalize.css.tsx' does not exist.", "File '/node_modules/normalize.css.d.ts' does not exist.", @@ -13,6 +15,8 @@ "File '/node_modules/normalize.css/normalize.css' exist - use it as a name resolution result.", "File '/node_modules/normalize.css/normalize.css' has an unsupported extension, so skipping it.", "Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: TypeScript, Declaration.", + "File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it.", + "File '/node_modules/normalize.css/normalize.d.css.ts' does not exist.", "File '/node_modules/normalize.css/normalize.css.ts' does not exist.", "File '/node_modules/normalize.css/normalize.css.tsx' does not exist.", "File '/node_modules/normalize.css/normalize.css.d.ts' does not exist.", @@ -21,14 +25,17 @@ "File '/node_modules/normalize.css/index.tsx' does not exist.", "File '/node_modules/normalize.css/index.d.ts' does not exist.", "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", + "File name '/node_modules/@types/normalize.css' has a '.css' extension - stripping it.", "Loading module 'normalize.css' from 'node_modules' folder, target file types: JavaScript.", "File '/node_modules/normalize.css/package.json' exists according to earlier cached lookups.", + "File name '/node_modules/normalize.css' has a '.css' extension - stripping it.", "File '/node_modules/normalize.css.js' does not exist.", "File '/node_modules/normalize.css.jsx' does not exist.", "'package.json' has 'main' field 'normalize.css' that references '/node_modules/normalize.css/normalize.css'.", "File '/node_modules/normalize.css/normalize.css' exist - use it as a name resolution result.", "File '/node_modules/normalize.css/normalize.css' has an unsupported extension, so skipping it.", "Loading module as file / folder, candidate module location '/node_modules/normalize.css/normalize.css', target file types: JavaScript.", + "File name '/node_modules/normalize.css/normalize.css' has a '.css' extension - stripping it.", "File '/node_modules/normalize.css/normalize.css.js' does not exist.", "File '/node_modules/normalize.css/normalize.css.jsx' does not exist.", "Directory '/node_modules/normalize.css/normalize.css' does not exist, skipping all lookups in it.", diff --git a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json index 7f495db34bb57..c09cc1038a864 100644 --- a/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json +++ b/tests/baselines/reference/moduleResolutionWithSuffixes_one_jsonModule.trace.json @@ -2,6 +2,8 @@ "======== Resolving module './foo.json' from '/index.ts'. ========", "Explicitly specified module resolution kind: 'Node10'.", "Loading module as file / folder, candidate module location '/foo.json', target file types: TypeScript, Declaration.", + "File name '/foo.json' has a '.json' extension - stripping it.", + "File '/foo.d.json.ios.ts' does not exist.", "File '/foo.json.ios.ts' does not exist.", "File '/foo.json.ios.tsx' does not exist.", "File '/foo.json.ios.d.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json index 897ac679db8c3..51cc1aa21990b 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot.trace.json @@ -12,6 +12,10 @@ "'package.json' has 'types' field 'types.d.ts' that references '/node_modules/foo/bar/types.d.ts'.", "File '/node_modules/foo/bar/types.d.ts' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/foo/bar/types.d.ts', target file types: TypeScript, Declaration.", + "File name '/node_modules/foo/bar/types.d.ts' has a '.d.ts' extension - stripping it.", + "File '/node_modules/foo/bar/types.ts' does not exist.", + "File '/node_modules/foo/bar/types.tsx' does not exist.", + "File '/node_modules/foo/bar/types.d.ts' does not exist.", "File '/node_modules/foo/bar/types.d.ts.ts' does not exist.", "File '/node_modules/foo/bar/types.d.ts.tsx' does not exist.", "File '/node_modules/foo/bar/types.d.ts.d.ts' does not exist.", diff --git a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json index 697b8fc31dff4..b68ea6c9c7f26 100644 --- a/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json +++ b/tests/baselines/reference/moduleResolution_packageJson_yesAtPackageRoot_fakeScopedPackage.trace.json @@ -12,6 +12,10 @@ "'package.json' has 'types' field 'types.d.ts' that references '/node_modules/foo/@bar/types.d.ts'.", "File '/node_modules/foo/@bar/types.d.ts' does not exist.", "Loading module as file / folder, candidate module location '/node_modules/foo/@bar/types.d.ts', target file types: TypeScript, Declaration.", + "File name '/node_modules/foo/@bar/types.d.ts' has a '.d.ts' extension - stripping it.", + "File '/node_modules/foo/@bar/types.ts' does not exist.", + "File '/node_modules/foo/@bar/types.tsx' does not exist.", + "File '/node_modules/foo/@bar/types.d.ts' does not exist.", "File '/node_modules/foo/@bar/types.d.ts.ts' does not exist.", "File '/node_modules/foo/@bar/types.d.ts.tsx' does not exist.", "File '/node_modules/foo/@bar/types.d.ts.d.ts' does not exist.", diff --git a/tests/baselines/reference/nonJsDeclarationFilePathCompletions.baseline b/tests/baselines/reference/nonJsDeclarationFilePathCompletions.baseline new file mode 100644 index 0000000000000..2ce80bec17d0c --- /dev/null +++ b/tests/baselines/reference/nonJsDeclarationFilePathCompletions.baseline @@ -0,0 +1,69 @@ +[ + { + "marker": { + "fileName": "/project/usage.ts", + "position": 35, + "name": "1" + }, + "completionList": { + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "entries": [ + { + "name": "mod.html", + "kind": "script", + "kindModifiers": "", + "sortText": "11", + "displayParts": [ + { + "text": "mod.html", + "kind": "text" + } + ], + "tags": [] + }, + { + "name": "node_modules", + "kind": "directory", + "kindModifiers": "", + "sortText": "11", + "displayParts": [ + { + "text": "node_modules", + "kind": "text" + } + ], + "tags": [] + } + ] + } + }, + { + "marker": { + "fileName": "/project/usage.ts", + "position": 86, + "name": "2" + }, + "completionList": { + "isGlobalCompletion": false, + "isMemberCompletion": false, + "isNewIdentifierLocation": true, + "entries": [ + { + "name": "mod.html", + "kind": "script", + "kindModifiers": "", + "sortText": "11", + "displayParts": [ + { + "text": "mod.html", + "kind": "text" + } + ], + "tags": [] + } + ] + } + } +] \ No newline at end of file diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json index e554a4084f40a..8c5c12e290057 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtensionInName.trace.json @@ -25,6 +25,10 @@ "Module name 'zone.tsx', matched pattern '*'.", "Trying substitution 'foo/*', candidate module location: 'foo/zone.tsx'.", "Loading module as file / folder, candidate module location '/foo/zone.tsx', target file types: TypeScript, Declaration.", + "File name '/foo/zone.tsx' has a '.tsx' extension - stripping it.", + "File '/foo/zone.tsx' does not exist.", + "File '/foo/zone.ts' does not exist.", + "File '/foo/zone.d.ts' does not exist.", "File '/foo/zone.tsx.ts' does not exist.", "File '/foo/zone.tsx.tsx' does not exist.", "File '/foo/zone.tsx.d.ts' does not exist.", diff --git a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json index d387db5193c52..d9025d8c17a8a 100644 --- a/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json +++ b/tests/baselines/reference/pathMappingBasedModuleResolution_withExtension_failedLookup.trace.json @@ -7,6 +7,7 @@ "Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'.", "File '/foo/foo.ts' does not exist.", "Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: TypeScript, Declaration.", + "File name '/foo/foo.ts' has a '.ts' extension - stripping it.", "Loading module 'foo' from 'node_modules' folder, target file types: TypeScript, Declaration.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo'.", @@ -15,6 +16,7 @@ "Trying substitution 'foo/foo.ts', candidate module location: 'foo/foo.ts'.", "File '/foo/foo.ts' does not exist.", "Loading module as file / folder, candidate module location '/foo/foo.ts', target file types: JavaScript.", + "File name '/foo/foo.ts' has a '.ts' extension - stripping it.", "Loading module 'foo' from 'node_modules' folder, target file types: JavaScript.", "Directory '/node_modules' does not exist, skipping all lookups in it.", "======== Module name 'foo' was not resolved. ========" diff --git a/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json b/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json index 2b68a488ba793..b58096f528443 100644 --- a/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json +++ b/tests/baselines/reference/requireOfJsonFileWithoutResolveJsonModuleAndPathMapping.trace.json @@ -6,6 +6,8 @@ "Module name 'foo/bar/foobar.json', matched pattern '*'.", "Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'.", "Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, Declaration.", + "File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.", + "File '/node_modules/foo/bar/foobar.d.json.ts' does not exist.", "File '/node_modules/foo/bar/foobar.json.ts' does not exist.", "File '/node_modules/foo/bar/foobar.json.tsx' does not exist.", "File '/node_modules/foo/bar/foobar.json.d.ts' does not exist.", @@ -14,15 +16,19 @@ "Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, Declaration.", "Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/foo/package.json' does not exist.", + "File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.", + "File '/node_modules/foo/bar/foobar.d.json.ts' does not exist.", "File '/node_modules/foo/bar/foobar.json.ts' does not exist.", "File '/node_modules/foo/bar/foobar.json.tsx' does not exist.", "File '/node_modules/foo/bar/foobar.json.d.ts' does not exist.", "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", + "File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.", "'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'.", "Module name 'foo/bar/foobar.json', matched pattern '*'.", "Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'.", "Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: JavaScript.", + "File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.", "File '/node_modules/foo/bar/foobar.json.js' does not exist.", "File '/node_modules/foo/bar/foobar.json.jsx' does not exist.", "Directory '/node_modules/foo/bar/foobar.json' does not exist, skipping all lookups in it.", @@ -30,6 +36,7 @@ "Loading module as file / folder, candidate module location '/src/types', target file types: JavaScript.", "Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: JavaScript.", "File '/node_modules/foo/package.json' does not exist according to earlier cached lookups.", + "File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.", "File '/node_modules/foo/bar/foobar.json.js' does not exist.", "File '/node_modules/foo/bar/foobar.json.jsx' does not exist.", "======== Module name 'foo/bar/foobar.json' was not resolved. ========" diff --git a/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json b/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json index 1df65bda8b241..1e380684667d8 100644 --- a/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json +++ b/tests/baselines/reference/requireOfJsonFile_PathMapping.trace.json @@ -6,6 +6,8 @@ "Module name 'foo/bar/foobar.json', matched pattern '*'.", "Trying substitution 'node_modules/*', candidate module location: 'node_modules/foo/bar/foobar.json'.", "Loading module as file / folder, candidate module location '/node_modules/foo/bar/foobar.json', target file types: TypeScript, Declaration.", + "File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.", + "File '/node_modules/foo/bar/foobar.d.json.ts' does not exist.", "File '/node_modules/foo/bar/foobar.json.ts' does not exist.", "File '/node_modules/foo/bar/foobar.json.tsx' does not exist.", "File '/node_modules/foo/bar/foobar.json.d.ts' does not exist.", @@ -14,10 +16,13 @@ "Loading module as file / folder, candidate module location '/src/types', target file types: TypeScript, Declaration.", "Loading module 'foo/bar/foobar.json' from 'node_modules' folder, target file types: TypeScript, Declaration.", "File '/node_modules/foo/package.json' does not exist.", + "File name '/node_modules/foo/bar/foobar.json' has a '.json' extension - stripping it.", + "File '/node_modules/foo/bar/foobar.d.json.ts' does not exist.", "File '/node_modules/foo/bar/foobar.json.ts' does not exist.", "File '/node_modules/foo/bar/foobar.json.tsx' does not exist.", "File '/node_modules/foo/bar/foobar.json.d.ts' does not exist.", "Directory '/node_modules/@types' does not exist, skipping all lookups in it.", + "File name '/node_modules/@types/foo/bar/foobar.json' has a '.json' extension - stripping it.", "'baseUrl' option is set to '/', using this value to resolve non-relative module name 'foo/bar/foobar.json'.", "'paths' option is specified, looking for a pattern to match module name 'foo/bar/foobar.json'.", "Module name 'foo/bar/foobar.json', matched pattern '*'.", diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js index b52058863154c..3b471f56407b4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -136,7 +136,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -212,14 +212,14 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -234,7 +234,7 @@ exports.App = App; "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -253,13 +253,13 @@ exports.App = App; "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-4369626085-export interface ITest {\n title: string;\n}" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -289,7 +289,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -306,7 +306,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -320,20 +320,20 @@ exports.App = App; "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1408 + "size": 1406 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -358,7 +358,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -366,7 +366,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -374,7 +374,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts) /user/username/projects/myproject/lib2/data.ts (computed .d.ts) @@ -398,7 +398,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -407,21 +407,21 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/public.js] file written with same contents //// [/user/username/projects/myproject/lib2/data.js] file written with same contents //// [/user/username/projects/myproject/lib2/public.js] file written with same contents //// [/user/username/projects/myproject/app.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -436,7 +436,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -455,7 +455,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -465,11 +465,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -515,7 +515,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -529,7 +529,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -543,7 +543,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -572,14 +572,14 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2308 + "size": 2305 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -604,7 +604,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -612,11 +612,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -636,7 +636,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -645,17 +645,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -670,7 +670,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -689,7 +689,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -699,11 +699,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -749,7 +749,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -763,7 +763,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -777,7 +777,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -806,14 +806,14 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2306 + "size": 2303 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -838,7 +838,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -846,11 +846,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -870,7 +870,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -879,17 +879,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -904,7 +904,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -923,7 +923,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -933,11 +933,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -983,7 +983,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -997,7 +997,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -1011,7 +1011,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -1040,6 +1040,6 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2308 + "size": 2305 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js index 3adebf6f85bea..c88e0e2e91cd1 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/no-circular-import/export.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -136,7 +136,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -215,7 +215,7 @@ exports.App = App; Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -240,7 +240,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -248,7 +248,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -256,7 +256,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts) /user/username/projects/myproject/lib2/data.ts (computed .d.ts) @@ -280,7 +280,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -289,7 +289,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/public.js] file written with same contents //// [/user/username/projects/myproject/lib2/data.js] file written with same contents @@ -299,7 +299,7 @@ exitCode:: ExitStatus.undefined Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -324,7 +324,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -332,11 +332,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -356,7 +356,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -365,13 +365,13 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -396,7 +396,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -404,11 +404,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -428,7 +428,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -437,5 +437,5 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js index ce41a4ea6e094..28fa64a666031 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data2.ts (used version) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,7 +125,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -147,7 +147,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -235,14 +235,14 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -258,7 +258,7 @@ exports.App = App; "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -278,13 +278,13 @@ exports.App = App; "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-4369626085-export interface ITest {\n title: string;\n}" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -318,7 +318,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -339,7 +339,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -357,21 +357,21 @@ exports.App = App; "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1593 + "size": 1591 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -396,7 +396,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -405,7 +405,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -414,7 +414,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts) /user/username/projects/myproject/lib2/data.ts (computed .d.ts) @@ -439,7 +439,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -450,7 +450,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/public.js] file written with same contents //// [/user/username/projects/myproject/lib2/data2.js] file written with same contents @@ -458,14 +458,14 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/lib2/public.js] file written with same contents //// [/user/username/projects/myproject/app.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -481,7 +481,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -501,7 +501,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -511,11 +511,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -569,7 +569,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -587,7 +587,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -605,7 +605,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -635,14 +635,14 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2671 + "size": 2668 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -667,7 +667,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -676,11 +676,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -700,7 +700,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -711,17 +711,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -737,7 +737,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -757,7 +757,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -767,11 +767,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -825,7 +825,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -843,7 +843,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -861,7 +861,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -891,14 +891,14 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2669 + "size": 2666 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -923,7 +923,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -932,11 +932,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -956,7 +956,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -967,17 +967,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -993,7 +993,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -1013,7 +1013,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -1023,11 +1023,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -1081,7 +1081,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1099,7 +1099,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1117,7 +1117,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -1147,6 +1147,6 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2671 + "size": 2668 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js index 95a2548076a97..b7ab62bc7f17e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependencies/transitive-exports/yes-circular-import/exports.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data2.ts (used version) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,7 +125,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -147,7 +147,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -238,7 +238,7 @@ exports.App = App; Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -263,7 +263,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -272,7 +272,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -281,7 +281,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts) /user/username/projects/myproject/lib2/data.ts (computed .d.ts) @@ -306,7 +306,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -317,7 +317,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/public.js] file written with same contents //// [/user/username/projects/myproject/lib2/data2.js] file written with same contents @@ -328,7 +328,7 @@ exitCode:: ExitStatus.undefined Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -353,7 +353,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -362,11 +362,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -386,7 +386,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -397,13 +397,13 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -428,7 +428,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -437,11 +437,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -461,7 +461,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -472,5 +472,5 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js index 95b77d12dbd89..9d4855a611604 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,12 +114,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -142,11 +142,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -243,14 +243,14 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -265,7 +265,7 @@ export declare class App { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -284,7 +284,7 @@ export declare class App { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -294,11 +294,11 @@ export declare class App { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -345,7 +345,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -359,7 +359,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -373,20 +373,20 @@ export declare class App { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1950 + "size": 1947 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -405,7 +405,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -413,11 +413,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -437,7 +437,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -446,8 +446,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -456,14 +456,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -478,7 +478,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -497,7 +497,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -507,11 +507,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -558,7 +558,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -572,7 +572,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -586,20 +586,20 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1952 + "size": 1949 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -618,7 +618,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -626,11 +626,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -650,7 +650,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -659,8 +659,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -669,14 +669,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -691,7 +691,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -710,7 +710,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -720,11 +720,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -771,7 +771,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -785,7 +785,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -799,20 +799,20 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1950 + "size": 1947 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -831,7 +831,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -839,11 +839,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -863,7 +863,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -872,8 +872,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -882,14 +882,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -904,7 +904,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -923,7 +923,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -933,11 +933,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -984,7 +984,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -998,7 +998,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -1012,12 +1012,12 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1952 + "size": 1949 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js index 69c1c298c99e4..b36c365bf4f63 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/no-circular-import/export.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,12 +114,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -142,11 +142,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -246,7 +246,7 @@ export declare class App { Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -265,7 +265,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -273,11 +273,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -297,7 +297,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -306,8 +306,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -319,7 +319,7 @@ export interface ITest { Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -338,7 +338,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -346,11 +346,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -370,7 +370,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -379,8 +379,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -392,7 +392,7 @@ export interface ITest { Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -411,7 +411,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -419,11 +419,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -443,7 +443,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -452,8 +452,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index 37d5afe820ea7..cdb42ded298da 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,12 +125,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -153,11 +153,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -275,14 +275,14 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -298,7 +298,7 @@ export declare class App { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -318,7 +318,7 @@ export declare class App { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -328,11 +328,11 @@ export declare class App { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -387,7 +387,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -405,7 +405,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -423,21 +423,21 @@ export declare class App { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 2313 + "size": 2310 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -456,7 +456,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -465,11 +465,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -489,7 +489,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -500,8 +500,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -510,14 +510,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -533,7 +533,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -553,7 +553,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -563,11 +563,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -622,7 +622,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -640,7 +640,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -658,21 +658,21 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 2315 + "size": 2312 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -691,7 +691,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -700,11 +700,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -724,7 +724,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -735,8 +735,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -745,14 +745,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -768,7 +768,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -788,7 +788,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -798,11 +798,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -857,7 +857,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -875,7 +875,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -893,21 +893,21 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 2313 + "size": 2310 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -926,7 +926,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -935,11 +935,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -959,7 +959,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -970,8 +970,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -980,14 +980,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"assumeChangesOnlyAffectDirectDependencies":true,"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -1003,7 +1003,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -1023,7 +1023,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -1033,11 +1033,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -1092,7 +1092,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1110,7 +1110,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1128,13 +1128,13 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 2315 + "size": 2312 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js index 42e0e3a111a2f..ad506e1215a61 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/assumeChangesOnlyAffectDirectDependenciesAndD/transitive-exports/yes-circular-import/exports.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,12 +125,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -153,11 +153,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -278,7 +278,7 @@ export declare class App { Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -297,7 +297,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -306,11 +306,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -330,7 +330,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -341,8 +341,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -354,7 +354,7 @@ export interface ITest { Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -373,7 +373,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -382,11 +382,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -406,7 +406,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -417,8 +417,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -430,7 +430,7 @@ export interface ITest { Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -449,7 +449,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"as Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -458,11 +458,11 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) PolledWatches:: @@ -482,7 +482,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -493,8 +493,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js index 15a84d19db0d1..1e11e432a3dec 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"in Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -136,7 +136,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -212,14 +212,14 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -234,7 +234,7 @@ exports.App = App; "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -253,13 +253,13 @@ exports.App = App; "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-4369626085-export interface ITest {\n title: string;\n}" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -286,7 +286,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -303,7 +303,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -317,20 +317,20 @@ exports.App = App; "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1347 + "size": 1345 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -355,7 +355,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"in Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -363,7 +363,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -371,7 +371,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts) /user/username/projects/myproject/lib2/data.ts (computed .d.ts) @@ -395,7 +395,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -404,21 +404,21 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/public.js] file written with same contents //// [/user/username/projects/myproject/lib2/data.js] file written with same contents //// [/user/username/projects/myproject/lib2/public.js] file written with same contents //// [/user/username/projects/myproject/app.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -433,7 +433,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -452,7 +452,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -462,11 +462,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -509,7 +509,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -523,7 +523,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -537,7 +537,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -566,14 +566,14 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2247 + "size": 2244 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -592,7 +592,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"in Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -600,7 +600,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -608,7 +608,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -632,7 +632,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -641,17 +641,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},"-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -666,7 +666,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -685,7 +685,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -695,11 +695,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -726,7 +726,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -743,7 +743,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -757,20 +757,20 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1513 + "size": 1510 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -795,7 +795,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"in Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -803,7 +803,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -811,7 +811,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -835,7 +835,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -844,17 +844,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},"-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -869,7 +869,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -888,7 +888,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -898,11 +898,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -929,7 +929,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -946,7 +946,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -960,7 +960,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -989,6 +989,6 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1890 + "size": 1887 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js index e3d84fda960a4..4bff8bf5a4b90 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/no-circular-import/export.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"co Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -136,7 +136,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -215,7 +215,7 @@ exports.App = App; Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -240,7 +240,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"co Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -248,7 +248,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -256,7 +256,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts) /user/username/projects/myproject/lib2/data.ts (computed .d.ts) @@ -280,7 +280,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -289,7 +289,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/public.js] file written with same contents //// [/user/username/projects/myproject/lib2/data.js] file written with same contents @@ -299,7 +299,7 @@ exitCode:: ExitStatus.undefined Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -318,7 +318,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"co Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -326,7 +326,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -334,7 +334,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -358,7 +358,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -367,13 +367,13 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -398,7 +398,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"co Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -406,7 +406,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -414,7 +414,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -438,7 +438,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -447,5 +447,5 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js index 6404652b48750..74061097bfb59 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"in Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data2.ts (used version) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,7 +125,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -147,7 +147,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -235,14 +235,14 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -258,7 +258,7 @@ exports.App = App; "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -278,13 +278,13 @@ exports.App = App; "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-4369626085-export interface ITest {\n title: string;\n}" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -315,7 +315,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -336,7 +336,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -354,21 +354,21 @@ exports.App = App; "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1532 + "size": 1530 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -393,7 +393,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"in Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -402,7 +402,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -411,7 +411,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts) /user/username/projects/myproject/lib2/data.ts (computed .d.ts) @@ -436,7 +436,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -447,7 +447,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/public.js] file written with same contents //// [/user/username/projects/myproject/lib2/data2.js] file written with same contents @@ -455,14 +455,14 @@ exitCode:: ExitStatus.undefined //// [/user/username/projects/myproject/lib2/public.js] file written with same contents //// [/user/username/projects/myproject/app.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -478,7 +478,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -498,7 +498,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -508,11 +508,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -563,7 +563,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -581,7 +581,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -599,7 +599,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -629,14 +629,14 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2610 + "size": 2607 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -655,7 +655,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"in Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -664,7 +664,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -673,7 +673,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -698,7 +698,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -709,17 +709,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},"-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -735,7 +735,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -755,7 +755,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -765,11 +765,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -800,7 +800,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -821,7 +821,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -839,21 +839,21 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1698 + "size": 1695 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -878,7 +878,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"in Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -887,7 +887,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -896,7 +896,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -921,7 +921,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -932,17 +932,17 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},"-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},"-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -958,7 +958,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -978,7 +978,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -988,11 +988,11 @@ exitCode:: ExitStatus.undefined }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -1023,7 +1023,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1044,7 +1044,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1062,7 +1062,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -1092,6 +1092,6 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 2075 + "size": 2072 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js index d44e4024213b2..d4df4f1fd7b36 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/default/transitive-exports/yes-circular-import/exports.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"co Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data2.ts (used version) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,7 +125,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -147,7 +147,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -238,7 +238,7 @@ exports.App = App; Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -263,7 +263,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"co Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -272,7 +272,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -281,7 +281,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts) /user/username/projects/myproject/lib2/data.ts (computed .d.ts) @@ -306,7 +306,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -317,7 +317,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents //// [/user/username/projects/myproject/lib1/public.js] file written with same contents //// [/user/username/projects/myproject/lib2/data2.js] file written with same contents @@ -328,7 +328,7 @@ exitCode:: ExitStatus.undefined Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -347,7 +347,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"co Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -356,7 +356,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -365,7 +365,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -390,7 +390,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -401,13 +401,13 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -432,7 +432,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"co Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -441,7 +441,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -450,7 +450,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -475,7 +475,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -486,5 +486,5 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/lib1/tools/public.js] file written with same contents diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js index 6105b087f1412..ff1807aa2d116 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,12 +114,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -142,11 +142,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -243,14 +243,14 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -265,7 +265,7 @@ export declare class App { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -284,7 +284,7 @@ export declare class App { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -294,11 +294,11 @@ export declare class App { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -344,7 +344,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -358,7 +358,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -372,20 +372,20 @@ export declare class App { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1901 + "size": 1898 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -410,7 +410,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -418,7 +418,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -426,7 +426,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -450,7 +450,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -459,8 +459,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -473,14 +473,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -495,7 +495,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -514,7 +514,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -524,11 +524,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -574,7 +574,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -588,7 +588,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -602,7 +602,7 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -631,14 +631,14 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2278 + "size": 2275 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -657,7 +657,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -665,7 +665,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -673,7 +673,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -697,7 +697,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -706,8 +706,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -720,14 +720,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -742,7 +742,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -761,7 +761,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -771,11 +771,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -821,7 +821,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -835,7 +835,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -849,20 +849,20 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1901 + "size": 1898 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -887,7 +887,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -895,7 +895,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -903,7 +903,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -927,7 +927,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -936,8 +936,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -950,14 +950,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -972,7 +972,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -991,7 +991,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -1001,11 +1001,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -1051,7 +1051,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -1065,7 +1065,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -1079,7 +1079,7 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -1108,6 +1108,6 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2278 + "size": 2275 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js index 408d7c7bac3f9..8813bfad7684e 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/no-circular-import/export.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,12 +114,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -142,11 +142,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -246,7 +246,7 @@ export declare class App { Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -271,7 +271,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -279,7 +279,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -287,7 +287,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -311,7 +311,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -320,8 +320,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -337,7 +337,7 @@ export interface ITest { Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -356,7 +356,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -364,7 +364,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -372,7 +372,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -396,7 +396,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -405,8 +405,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -422,7 +422,7 @@ export interface ITest { Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -447,7 +447,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -455,7 +455,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -463,7 +463,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -487,7 +487,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -496,8 +496,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index a913dd3f0ab83..11bbeca6657de 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,12 +125,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -153,11 +153,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -275,14 +275,14 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -298,7 +298,7 @@ export declare class App { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -318,7 +318,7 @@ export declare class App { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -328,11 +328,11 @@ export declare class App { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -386,7 +386,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -404,7 +404,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -422,21 +422,21 @@ export declare class App { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 2264 + "size": 2261 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -461,7 +461,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -470,7 +470,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -479,7 +479,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -504,7 +504,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -515,8 +515,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -530,14 +530,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -553,7 +553,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -573,7 +573,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -583,11 +583,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -641,7 +641,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -659,7 +659,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -677,7 +677,7 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -707,14 +707,14 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2641 + "size": 2638 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -733,7 +733,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -742,7 +742,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -751,7 +751,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -776,7 +776,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -787,8 +787,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -802,14 +802,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -825,7 +825,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -845,7 +845,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -855,11 +855,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -913,7 +913,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -931,7 +931,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -949,21 +949,21 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 2264 + "size": 2261 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -988,7 +988,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -997,7 +997,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -1006,7 +1006,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -1031,7 +1031,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -1042,8 +1042,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -1057,14 +1057,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -1080,7 +1080,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -1100,7 +1100,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -1110,11 +1110,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -1168,7 +1168,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1186,7 +1186,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1204,7 +1204,7 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -1234,6 +1234,6 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2641 + "size": 2638 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js index 2383c83d33a92..30f4b65d9578b 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/defaultAndD/transitive-exports/yes-circular-import/exports.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,12 +125,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -153,11 +153,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -278,7 +278,7 @@ export declare class App { Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -303,7 +303,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -312,7 +312,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -321,7 +321,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -346,7 +346,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -357,8 +357,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -375,7 +375,7 @@ export interface ITest { Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -394,7 +394,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -403,7 +403,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -412,7 +412,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -437,7 +437,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -448,8 +448,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -466,7 +466,7 @@ export interface ITest { Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -491,7 +491,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"de Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -500,7 +500,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -509,7 +509,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -534,7 +534,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -545,8 +545,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js index 54e1bacbec4b4..bbfc41f29a09c 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -136,7 +136,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -212,14 +212,14 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -234,7 +234,7 @@ exports.App = App; "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -253,13 +253,13 @@ exports.App = App; "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-4369626085-export interface ITest {\n title: string;\n}" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -286,7 +286,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -303,7 +303,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -317,20 +317,20 @@ exports.App = App; "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1347 + "size": 1345 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -355,7 +355,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -363,7 +363,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -371,7 +371,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -395,7 +395,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -404,16 +404,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -428,7 +428,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -447,7 +447,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -456,8 +456,8 @@ exitCode:: ExitStatus.undefined "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -484,7 +484,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -501,7 +501,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -515,7 +515,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -544,14 +544,14 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1812 + "size": 1810 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -570,7 +570,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -578,7 +578,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -586,7 +586,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -610,7 +610,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -619,16 +619,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},"-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -643,7 +643,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -662,7 +662,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -671,8 +671,8 @@ exitCode:: ExitStatus.undefined "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -699,7 +699,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -716,7 +716,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -730,20 +730,20 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1435 + "size": 1433 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -768,7 +768,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -776,7 +776,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -784,7 +784,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -808,7 +808,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -817,16 +817,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -841,7 +841,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -860,7 +860,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -869,8 +869,8 @@ exitCode:: ExitStatus.undefined "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -897,7 +897,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -914,7 +914,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -928,7 +928,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -957,6 +957,6 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1812 + "size": 1810 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js index f8ea2327bd831..12ec2e823e420 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/no-circular-import/export.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,7 +114,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -136,7 +136,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -215,7 +215,7 @@ exports.App = App; Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -240,7 +240,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -248,7 +248,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -256,7 +256,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -280,7 +280,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -289,12 +289,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -313,7 +313,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -321,7 +321,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -329,7 +329,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -353,7 +353,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -362,12 +362,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -392,7 +392,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -400,7 +400,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -408,7 +408,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -432,7 +432,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -441,4 +441,4 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js index b1a546324a6f9..b5ea6d7f40abc 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data2.ts (used version) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,7 +125,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -147,7 +147,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -235,14 +235,14 @@ exports.App = App; //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"-4369626085-export interface ITest {\n title: string;\n}","-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -258,7 +258,7 @@ exports.App = App; "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -278,13 +278,13 @@ exports.App = App; "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-4369626085-export interface ITest {\n title: string;\n}" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -315,7 +315,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -336,7 +336,7 @@ exports.App = App; "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -354,21 +354,21 @@ exports.App = App; "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1532 + "size": 1530 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -393,7 +393,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -402,7 +402,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -411,7 +411,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -436,7 +436,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -447,16 +447,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -472,7 +472,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -492,7 +492,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -501,8 +501,8 @@ exitCode:: ExitStatus.undefined "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -533,7 +533,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -554,7 +554,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -572,7 +572,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -602,14 +602,14 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1997 + "size": 1995 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -628,7 +628,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -637,7 +637,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -646,7 +646,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -671,7 +671,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -682,16 +682,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},"-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -707,7 +707,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -727,7 +727,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -736,8 +736,8 @@ exitCode:: ExitStatus.undefined "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -768,7 +768,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -789,7 +789,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -807,21 +807,21 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1620 + "size": 1618 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -846,7 +846,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -855,7 +855,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -864,7 +864,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -889,7 +889,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -900,16 +900,16 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-13301115055-export * from \"./tools.interface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},"-10750058173-export * from \"./toolsinterface\";","-5078933600-export * from \"./tools/public\";","-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","-9530042629-export * from \"./data\";","-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}"],"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -925,7 +925,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -945,7 +945,7 @@ exitCode:: ExitStatus.undefined "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -954,8 +954,8 @@ exitCode:: ExitStatus.undefined "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" }, "./lib1/tools/public.ts": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13301115055-export * from \"./tools.interface\";" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-10750058173-export * from \"./toolsinterface\";" }, "./lib1/public.ts": { "version": "-5078933600-export * from \"./tools/public\";", @@ -986,7 +986,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1007,7 +1007,7 @@ exitCode:: ExitStatus.undefined "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1025,7 +1025,7 @@ exitCode:: ExitStatus.undefined "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -1055,6 +1055,6 @@ exitCode:: ExitStatus.undefined ] }, "version": "FakeTSVersion", - "size": 1997 + "size": 1995 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js index 4802379055d82..3314590c29361 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModules/transitive-exports/yes-circular-import/exports.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (used version) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (used version) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data2.ts (used version) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,7 +125,7 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -147,7 +147,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/public.js] @@ -238,7 +238,7 @@ exports.App = App; Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -263,7 +263,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -272,7 +272,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -281,7 +281,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -306,7 +306,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -317,12 +317,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -341,7 +341,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -350,7 +350,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -359,7 +359,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -384,7 +384,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -395,12 +395,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -425,7 +425,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -434,7 +434,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -443,7 +443,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (used version) /user/username/projects/myproject/lib1/public.ts (used version) /user/username/projects/myproject/lib2/data.ts (used version) @@ -468,7 +468,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -479,4 +479,4 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js index 5ea7eb04e4125..56d9ec978cfb4 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,12 +114,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -142,11 +142,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -243,14 +243,14 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -265,7 +265,7 @@ export declare class App { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -284,7 +284,7 @@ export declare class App { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -294,11 +294,11 @@ export declare class App { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -344,7 +344,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -358,7 +358,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -372,20 +372,20 @@ export declare class App { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1901 + "size": 1898 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -410,7 +410,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -418,7 +418,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -426,7 +426,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -450,7 +450,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -459,8 +459,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -472,14 +472,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -494,7 +494,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -513,7 +513,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -523,11 +523,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -573,7 +573,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -587,7 +587,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -601,7 +601,7 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -630,14 +630,14 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2278 + "size": 2275 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -656,7 +656,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -664,7 +664,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -672,7 +672,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -696,7 +696,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -705,8 +705,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -718,14 +718,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,5,6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -740,7 +740,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -759,7 +759,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -769,11 +769,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -819,7 +819,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -833,7 +833,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -847,20 +847,20 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 1901 + "size": 1898 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -885,7 +885,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -893,7 +893,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -901,7 +901,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -925,7 +925,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -934,8 +934,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -947,14 +947,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-30573389178-import { ITest } from \"lib1/public\";\nexport class Data {\n public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-15758516261-import { ITest } from \"lib1/public\";\nexport declare class Data {\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[6],[3],[2],[4],[5]],"referencedMap":[[7,1],[4,2],[3,3],[5,4],[6,5]],"exportedModulesMap":[[4,2],[3,3],[5,4],[6,5]],"semanticDiagnosticsPerFile":[1,7,4,3,2,[5,[{"file":"./lib2/data.ts","start":121,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],6]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data.ts", @@ -969,7 +969,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts" @@ -988,7 +988,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -998,11 +998,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -1048,7 +1048,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -1062,7 +1062,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts" @@ -1076,7 +1076,7 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -1105,6 +1105,6 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2278 + "size": 2275 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js index d11beb217e99f..b1c04b3bcf096 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/no-circular-import/export.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -63,7 +63,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -72,7 +72,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -81,7 +81,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -105,7 +105,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -114,12 +114,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -142,11 +142,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -246,7 +246,7 @@ export declare class App { Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -271,7 +271,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -279,7 +279,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -287,7 +287,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -311,7 +311,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -320,8 +320,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -336,7 +336,7 @@ export interface ITest { Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -355,7 +355,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -363,7 +363,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -371,7 +371,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -395,7 +395,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -404,8 +404,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -420,7 +420,7 @@ export interface ITest { Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -445,7 +445,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -453,7 +453,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data.ts @@ -461,7 +461,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -485,7 +485,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /a/lib/lib.d.ts: {} @@ -494,8 +494,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js index a95912008e25c..123e48c393916 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports-with-incremental.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,12 +125,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -153,11 +153,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -275,14 +275,14 @@ export declare class App { //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -298,7 +298,7 @@ export declare class App { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -318,7 +318,7 @@ export declare class App { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -328,11 +328,11 @@ export declare class App { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -386,7 +386,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -404,7 +404,7 @@ export declare class App { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -422,21 +422,21 @@ export declare class App { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 2264 + "size": 2261 } Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -461,7 +461,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -470,7 +470,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -479,7 +479,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -504,7 +504,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -515,8 +515,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -529,14 +529,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -552,7 +552,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -572,7 +572,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -582,11 +582,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -640,7 +640,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -658,7 +658,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -676,7 +676,7 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -706,14 +706,14 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2641 + "size": 2638 } Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -732,7 +732,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -741,7 +741,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -750,7 +750,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -775,7 +775,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -786,8 +786,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -800,14 +800,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-4369626085-export interface ITest {\n title: string;\n}","signature":"-2463740027-export interface ITest {\n title: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,6,5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -823,7 +823,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -843,7 +843,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-4369626085-export interface ITest {\n title: string;\n}", "signature": "-2463740027-export interface ITest {\n title: string;\n}\n" @@ -853,11 +853,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -911,7 +911,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -929,7 +929,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -947,21 +947,21 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib2/data.ts", "./lib2/data2.ts", "./lib2/public.ts" ] }, "version": "FakeTSVersion", - "size": 2264 + "size": 2261 } Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -986,7 +986,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -995,7 +995,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -1004,7 +1004,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -1029,7 +1029,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -1040,8 +1040,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -1054,14 +1054,14 @@ export interface ITest { //// [/user/username/projects/myproject/lib2/public.d.ts] file written with same contents //// [/user/username/projects/myproject/app.d.ts] file written with same contents //// [/user/username/projects/myproject/tsconfig.tsbuildinfo] -{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/tools.interface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-13301115055-export * from \"./tools.interface\";","signature":"-13735034501-export * from \"./tools.interface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} +{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./lib1/tools/toolsinterface.ts","./lib1/tools/public.ts","./lib1/public.ts","./lib2/data2.ts","./lib2/data.ts","./lib2/public.ts","./app.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},{"version":"-3501597171-export interface ITest {\n title2: string;\n}","signature":"-3883556937-export interface ITest {\n title2: string;\n}\n"},{"version":"-10750058173-export * from \"./toolsinterface\";","signature":"-11154536019-export * from \"./toolsinterface\";\n"},{"version":"-5078933600-export * from \"./tools/public\";","signature":"-4396051542-export * from \"./tools/public\";\n"},{"version":"-11055285700-import { Data } from \"./data\";\nexport class Data2 {\n public dat?: Data;\n}","signature":"-17387821545-import { Data } from \"./data\";\nexport declare class Data2 {\n dat?: Data;\n}\n"},{"version":"-2056074887-import { ITest } from \"lib1/public\"; import { Data2 } from \"./data2\";\nexport class Data {\n public dat?: Data2; public test() {\n const result: ITest = {\n title: \"title\"\n }\n return result;\n }\n}","signature":"-14170088573-import { ITest } from \"lib1/public\";\nimport { Data2 } from \"./data2\";\nexport declare class Data {\n dat?: Data2;\n test(): ITest;\n}\n"},{"version":"-9530042629-export * from \"./data\";","signature":"-9548728731-export * from \"./data\";\n"},{"version":"-14937286564-import { Data } from \"lib2/public\";\nexport class App {\n public constructor() {\n new Data().test();\n }\n}","signature":"-18990360330-export declare class App {\n constructor();\n}\n"}],"options":{"declaration":true},"fileIdsList":[[7],[3],[2],[4,5],[6]],"referencedMap":[[8,1],[4,2],[3,3],[6,4],[5,5],[7,5]],"exportedModulesMap":[[4,2],[3,3],[6,4],[5,5],[7,5]],"semanticDiagnosticsPerFile":[1,8,4,3,2,[6,[{"file":"./lib2/data.ts","start":174,"length":14,"code":2322,"category":1,"messageText":{"messageText":"Type '{ title: string; }' is not assignable to type 'ITest'.","category":1,"code":2322,"next":[{"messageText":"Object literal may only specify known properties, but 'title' does not exist in type 'ITest'. Did you mean to write 'title2'?","category":1,"code":2561}]}}]],5,7]},"version":"FakeTSVersion"} //// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt] { "program": { "fileNames": [ "../../../../a/lib/lib.d.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", "./lib1/tools/public.ts", "./lib1/public.ts", "./lib2/data2.ts", @@ -1077,7 +1077,7 @@ export interface ITest { "./lib1/tools/public.ts" ], [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], [ "./lib1/public.ts", @@ -1097,7 +1097,7 @@ export interface ITest { "signature": "-7698705165-/// \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; }", "affectsGlobalScope": true }, - "./lib1/tools/tools.interface.ts": { + "./lib1/tools/toolsinterface.ts": { "original": { "version": "-3501597171-export interface ITest {\n title2: string;\n}", "signature": "-3883556937-export interface ITest {\n title2: string;\n}\n" @@ -1107,11 +1107,11 @@ export interface ITest { }, "./lib1/tools/public.ts": { "original": { - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, - "version": "-13301115055-export * from \"./tools.interface\";", - "signature": "-13735034501-export * from \"./tools.interface\";\n" + "version": "-10750058173-export * from \"./toolsinterface\";", + "signature": "-11154536019-export * from \"./toolsinterface\";\n" }, "./lib1/public.ts": { "original": { @@ -1165,7 +1165,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1183,7 +1183,7 @@ export interface ITest { "./lib1/tools/public.ts" ], "./lib1/tools/public.ts": [ - "./lib1/tools/tools.interface.ts" + "./lib1/tools/toolsinterface.ts" ], "./lib2/data.ts": [ "./lib1/public.ts", @@ -1201,7 +1201,7 @@ export interface ITest { "./app.ts", "./lib1/public.ts", "./lib1/tools/public.ts", - "./lib1/tools/tools.interface.ts", + "./lib1/tools/toolsinterface.ts", [ "./lib2/data.ts", [ @@ -1231,6 +1231,6 @@ export interface ITest { ] }, "version": "FakeTSVersion", - "size": 2641 + "size": 2638 } diff --git a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js index 74f0c58669ade..505bd5824f117 100644 --- a/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js +++ b/tests/baselines/reference/tscWatch/emitAndErrorUpdates/isolatedModulesAndD/transitive-exports/yes-circular-import/exports.js @@ -1,11 +1,11 @@ Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } //// [/user/username/projects/myproject/lib1/tools/public.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/app.ts] import { Data } from "lib2/public"; @@ -69,7 +69,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Not Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -79,7 +79,7 @@ Program files:: Semantic diagnostics in builder refreshed for:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -89,7 +89,7 @@ Semantic diagnostics in builder refreshed for:: Shape signatures in builder refreshed for:: /a/lib/lib.d.ts (used version) -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts during emit) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data2.ts (computed .d.ts during emit) @@ -114,7 +114,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -125,12 +125,12 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -153,11 +153,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); }; Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./tools.interface"), exports); +__exportStar(require("./toolsinterface"), exports); //// [/user/username/projects/myproject/lib1/tools/public.d.ts] -export * from "./tools.interface"; +export * from "./toolsinterface"; //// [/user/username/projects/myproject/lib1/public.js] @@ -278,7 +278,7 @@ export declare class App { Change:: Rename property title to title2 of interface ITest to initialize signatures Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -303,7 +303,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -312,7 +312,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -321,7 +321,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -346,7 +346,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -357,8 +357,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } @@ -374,7 +374,7 @@ export interface ITest { Change:: Rename property title2 to title of interface ITest to revert back to original text Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title: string; } @@ -393,7 +393,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -402,7 +402,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -411,7 +411,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -436,7 +436,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -447,8 +447,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title: string; } @@ -464,7 +464,7 @@ export interface ITest { Change:: Rename property title to title2 of interface ITest Input:: -//// [/user/username/projects/myproject/lib1/tools/tools.interface.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.ts] export interface ITest { title2: string; } @@ -489,7 +489,7 @@ Program options: {"baseUrl":"/user/username/projects/myproject","watch":true,"is Program structureReused: Completely Program files:: /a/lib/lib.d.ts -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -498,7 +498,7 @@ Program files:: /user/username/projects/myproject/app.ts Semantic diagnostics in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts +/user/username/projects/myproject/lib1/tools/toolsinterface.ts /user/username/projects/myproject/lib1/tools/public.ts /user/username/projects/myproject/lib1/public.ts /user/username/projects/myproject/lib2/data2.ts @@ -507,7 +507,7 @@ Semantic diagnostics in builder refreshed for:: /user/username/projects/myproject/app.ts Shape signatures in builder refreshed for:: -/user/username/projects/myproject/lib1/tools/tools.interface.ts (computed .d.ts) +/user/username/projects/myproject/lib1/tools/toolsinterface.ts (computed .d.ts) /user/username/projects/myproject/lib1/tools/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib1/public.ts (computed .d.ts during emit) /user/username/projects/myproject/lib2/data.ts (computed .d.ts during emit) @@ -532,7 +532,7 @@ FsWatches:: {} /user/username/projects/myproject/lib1/tools/public.ts: {} -/user/username/projects/myproject/lib1/tools/tools.interface.ts: +/user/username/projects/myproject/lib1/tools/toolsinterface.ts: {} /user/username/projects/myproject/lib2/data2.ts: {} @@ -543,8 +543,8 @@ FsWatchesRecursive:: exitCode:: ExitStatus.undefined -//// [/user/username/projects/myproject/lib1/tools/tools.interface.js] file written with same contents -//// [/user/username/projects/myproject/lib1/tools/tools.interface.d.ts] +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.js] file written with same contents +//// [/user/username/projects/myproject/lib1/tools/toolsinterface.d.ts] export interface ITest { title2: string; } diff --git a/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js b/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js new file mode 100644 index 0000000000000..af609eb1782da --- /dev/null +++ b/tests/baselines/reference/tscWatch/resolveJsonModule/incremental-always-prefers-declaration-file-over-document.js @@ -0,0 +1,201 @@ +Input:: +//// [/src/project/main.ts] +import data from "./data.json"; let x: string = data; + +//// [/src/project/data.json] +{} + +//// [/src/project/data.d.json.ts] +declare var val: string; export default val; + +//// [/src/project/tsconfig.json] +{ + "compilerOptions": { + "resolveJsonModule": true + } +} + +//// [/a/lib/lib.d.ts] +/// +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; } + + +/a/lib/tsc.js --p src/project -i -w +Output:: +>> Screen clear +[12:00:21 AM] Starting compilation in watch mode... + +src/project/main.ts:1:18 - error TS6263: Module './data.json' was resolved to '/src/project/data.d.json.ts', but '--allowArbitraryExtensions' is not set. + +1 import data from "./data.json"; let x: string = data; +   ~~~~~~~~~~~~~ + +[12:00:26 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/src/project/data.d.json.ts","/src/project/main.ts"] +Program options: {"resolveJsonModule":true,"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/src/project/data.d.json.ts +/src/project/main.ts + +Semantic diagnostics in builder refreshed for:: +/a/lib/lib.d.ts +/src/project/data.d.json.ts +/src/project/main.ts + +Shape signatures in builder refreshed for:: +/a/lib/lib.d.ts (used version) +/src/project/data.d.json.ts (used version) +/src/project/main.ts (used version) + +PolledWatches:: +/src/project/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/src/project/tsconfig.json: + {} +/src/project/data.d.json.ts: + {} +/src/project/main.ts: + {} +/a/lib/lib.d.ts: + {} + +FsWatchesRecursive:: +/src/project: + {} + +exitCode:: ExitStatus.undefined + +//// [/src/project/main.js] +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var data_json_1 = require("./data.json"); +var x = data_json_1.default; + + +//// [/src/project/tsconfig.tsbuildinfo] +{"program":{"fileNames":["../../a/lib/lib.d.ts","./data.d.json.ts","./main.ts"],"fileInfos":[{"version":"-7698705165-/// \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; }","affectsGlobalScope":true},"2718060498-declare var val: string; export default val;","6961905452-import data from \"./data.json\"; let x: string = data;"],"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,[3,[{"file":"./main.ts","start":17,"length":13,"messageText":"Module './data.json' was resolved to '/src/project/data.d.json.ts', but '--allowArbitraryExtensions' is not set.","category":1,"code":6263}]]]},"version":"FakeTSVersion"} + +//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt] +{ + "program": { + "fileNames": [ + "../../a/lib/lib.d.ts", + "./data.d.json.ts", + "./main.ts" + ], + "fileInfos": { + "../../a/lib/lib.d.ts": { + "original": { + "version": "-7698705165-/// \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; }", + "affectsGlobalScope": true + }, + "version": "-7698705165-/// \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; }", + "signature": "-7698705165-/// \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; }", + "affectsGlobalScope": true + }, + "./data.d.json.ts": { + "version": "2718060498-declare var val: string; export default val;", + "signature": "2718060498-declare var val: string; export default val;" + }, + "./main.ts": { + "version": "6961905452-import data from \"./data.json\"; let x: string = data;", + "signature": "6961905452-import data from \"./data.json\"; let x: string = data;" + } + }, + "referencedMap": {}, + "exportedModulesMap": {}, + "semanticDiagnosticsPerFile": [ + "../../a/lib/lib.d.ts", + "./data.d.json.ts", + [ + "./main.ts", + [ + { + "file": "./main.ts", + "start": 17, + "length": 13, + "messageText": "Module './data.json' was resolved to '/src/project/data.d.json.ts', but '--allowArbitraryExtensions' is not set.", + "category": 1, + "code": 6263 + } + ] + ] + ] + }, + "version": "FakeTSVersion", + "size": 929 +} + + +Change:: Change json setting + +Input:: +//// [/src/project/tsconfig.json] +{ + "compilerOptions": { + "resolveJsonModule": false + } +} + + +Output:: +>> Screen clear +[12:00:32 AM] File change detected. Starting incremental compilation... + +src/project/main.ts:1:18 - error TS6263: Module './data.json' was resolved to '/src/project/data.d.json.ts', but '--allowArbitraryExtensions' is not set. + +1 import data from "./data.json"; let x: string = data; +   ~~~~~~~~~~~~~ + +[12:00:33 AM] Found 1 error. Watching for file changes. + + + +Program root files: ["/src/project/data.d.json.ts","/src/project/main.ts"] +Program options: {"resolveJsonModule":false,"project":"/src/project","incremental":true,"watch":true,"configFilePath":"/src/project/tsconfig.json"} +Program structureReused: Not +Program files:: +/a/lib/lib.d.ts +/src/project/data.d.json.ts +/src/project/main.ts + +Semantic diagnostics in builder refreshed for:: + +No shapes updated in the builder:: + +PolledWatches:: +/src/project/node_modules/@types: + {"pollingInterval":500} + +FsWatches:: +/src/project/tsconfig.json: + {} +/src/project/data.d.json.ts: + {} +/src/project/main.ts: + {} +/a/lib/lib.d.ts: + {} + +FsWatchesRecursive:: +/src/project: + {} + +exitCode:: ExitStatus.undefined + diff --git a/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js b/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js index a5315f584b303..ee708c95a8708 100644 --- a/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js +++ b/tests/baselines/reference/tsserver/plugins/getSupportedCodeFixes-can-be-proxied.js @@ -1334,6 +1334,7 @@ Info 32 [00:01:13.000] response: "6236", "6238", "6258", + "6263", "6304", "6305", "6306", @@ -2666,6 +2667,7 @@ Info 38 [00:01:19.000] response: "6236", "6238", "6258", + "6263", "6304", "6305", "6306", @@ -3910,6 +3912,7 @@ Info 40 [00:01:21.000] response: "6236", "6238", "6258", + "6263", "6304", "6305", "6306", diff --git a/tests/cases/compiler/declarationEmitTransitiveImportOfHtmlDeclarationItem.ts b/tests/cases/compiler/declarationEmitTransitiveImportOfHtmlDeclarationItem.ts new file mode 100644 index 0000000000000..1df733a18129b --- /dev/null +++ b/tests/cases/compiler/declarationEmitTransitiveImportOfHtmlDeclarationItem.ts @@ -0,0 +1,15 @@ +// @declaration: true +// @allowArbitraryExtensions: true +// @filename: foo.d.html.ts +export declare class CustomHtmlRepresentationThing {} + +// @filename: reexporter.ts +import { CustomHtmlRepresentationThing } from "./foo.html"; + +export function func() { + return new CustomHtmlRepresentationThing(); +} + +// @filename: index.ts +import { func } from "./reexporter"; +export const c = func(); \ No newline at end of file diff --git a/tests/cases/conformance/nonjsExtensions/declarationFileForHtmlFileWithinDeclarationFile.ts b/tests/cases/conformance/nonjsExtensions/declarationFileForHtmlFileWithinDeclarationFile.ts new file mode 100644 index 0000000000000..36f3bea560de7 --- /dev/null +++ b/tests/cases/conformance/nonjsExtensions/declarationFileForHtmlFileWithinDeclarationFile.ts @@ -0,0 +1,28 @@ +// @lib: es2020,dom +// @target: es2020 +// @filename: component.d.html.ts + +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +export default doc; + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; + +export class HTML5Element extends HTMLElement { + connectedCallback(): void; +} + +// @filename: file.d.ts +export * as mod from "./component.html"; + +// @filename: main.ts +import { mod } from "./file.js"; + +window.customElements.define("my-html5-element", mod.HTML5Element); + +if (document !== mod.default) { + document.body.appendChild(mod.blogPost); +} \ No newline at end of file diff --git a/tests/cases/conformance/nonjsExtensions/declarationFileForHtmlImport.ts b/tests/cases/conformance/nonjsExtensions/declarationFileForHtmlImport.ts new file mode 100644 index 0000000000000..c8ddfde29be70 --- /dev/null +++ b/tests/cases/conformance/nonjsExtensions/declarationFileForHtmlImport.ts @@ -0,0 +1,26 @@ +// @lib: es2020,dom +// @target: es2020 +// @allowArbitraryExtensions: true,false +// @filename: component.d.html.ts + +// html modules were proposed at https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md + +// per proposal, `default` is user-defined, but if not present, will be the document of the imported module +declare var doc: Document; +export default doc; + +// all other exports are just whatever was exported in module script blocks in the html file +export const blogPost: Element; + +export class HTML5Element extends HTMLElement { + connectedCallback(): void; +} + +// @filename: file.ts +import * as mod from "./component.html"; + +window.customElements.define("my-html5-element", mod.HTML5Element); + +if (document !== mod.default) { + document.body.appendChild(mod.blogPost); +} \ No newline at end of file diff --git a/tests/cases/conformance/nonjsExtensions/declarationFileForJsonImport.ts b/tests/cases/conformance/nonjsExtensions/declarationFileForJsonImport.ts new file mode 100644 index 0000000000000..f3c018d400ffb --- /dev/null +++ b/tests/cases/conformance/nonjsExtensions/declarationFileForJsonImport.ts @@ -0,0 +1,10 @@ +// @allowArbitraryExtensions: true +// @resolveJsonModule: true,false +// @filename: main.ts +import data from "./data.json"; +let x: string = data; +// @filename: data.json +{} +// @filename: data.d.json.ts +declare var val: string; +export default val; \ No newline at end of file diff --git a/tests/cases/conformance/nonjsExtensions/declarationFileForTsJsImport.ts b/tests/cases/conformance/nonjsExtensions/declarationFileForTsJsImport.ts new file mode 100644 index 0000000000000..2cef80be152ff --- /dev/null +++ b/tests/cases/conformance/nonjsExtensions/declarationFileForTsJsImport.ts @@ -0,0 +1,53 @@ +// @allowArbitraryExtensions: true +// @module: nodenext +// @filename: package.json +{"type": "module"} +// @filename: main.ts +import def1 from "./file.js"; +import def2 from "./file.jsx"; +import def3 from "./file.ts"; +import def4 from "./file.tsx"; +import def5 from "./file.mjs"; +import def6 from "./file.cjs"; +import def7 from "./file.mts"; +import def8 from "./file.cts"; +import def9 from "./file.d.ts"; +import def10 from "./file.d.cts"; +import def11 from "./file.d.mts"; +import def12 from "./file.d.json.ts"; +// @filename: file.d.js.ts +declare var bad: "bad1"; +export default bad; +// @filename: file.d.jsx.ts +declare var bad: "bad2"; +export default bad; +// @filename: file.d.ts.ts +declare var bad: "bad3"; +export default bad; +// @filename: file.d.tsx.ts +declare var bad: "bad4"; +export default bad; +// @filename: file.d.mjs.ts +declare var bad: "bad5"; +export default bad; +// @filename: file.d.cjs.ts +declare var bad: "bad6"; +export default bad; +// @filename: file.d.mts.ts +declare var bad: "bad7"; +export default bad; +// @filename: file.d.cts.ts +declare var bad: "bad8"; +export default bad; +// @filename: file.d.d.ts.ts +declare var bad: "bad9"; +export default bad; +// @filename: file.d.d.mts.ts +declare var bad: "bad10"; +export default bad; +// @filename: file.d.d.cts.ts +declare var bad: "bad11"; +export default bad; +// @filename: file.d.d.json.ts +declare var bad: "bad12"; +export default bad; \ No newline at end of file diff --git a/tests/cases/conformance/nonjsExtensions/declarationFilesForNodeNativeModules.ts b/tests/cases/conformance/nonjsExtensions/declarationFilesForNodeNativeModules.ts new file mode 100644 index 0000000000000..941ea101a2c37 --- /dev/null +++ b/tests/cases/conformance/nonjsExtensions/declarationFilesForNodeNativeModules.ts @@ -0,0 +1,13 @@ +// @lib: es2020,dom +// @target: es2020 +// @allowArbitraryExtensions: true,false +// @module: nodenext +// @filename: package.json +{"type": "module"} +// @filename: dir/package.json +{"type": "commonjs"} +// @filename: dir/native.d.node.ts +export function doNativeThing(flag: string): unknown; +// @filename: main.ts +import mod = require("./dir/native.node"); +mod.doNativeThing("good"); diff --git a/tests/cases/fourslash/completionListIsGlobalCompletion.ts b/tests/cases/fourslash/completionListIsGlobalCompletion.ts index c72d13d002eb5..107c64adadb2a 100644 --- a/tests/cases/fourslash/completionListIsGlobalCompletion.ts +++ b/tests/cases/fourslash/completionListIsGlobalCompletion.ts @@ -38,7 +38,8 @@ const x = ["test", "A", "B", "C", "y", "z", "x", "user"]; const globals = completion.sorted([...x, ...completion.globals]) verify.completions( - { marker: ["1", "3"], exact: [{ name: "type", sortText: completion.SortText.GlobalsOrKeywords }], isNewIdentifierLocation: true, isGlobalCompletion: false }, + { marker: ["1"], exact: ["x", "y", { name: "type", sortText: completion.SortText.GlobalsOrKeywords }], isGlobalCompletion: false }, + { marker: ["3"], exact: [{ name: "type", sortText: completion.SortText.GlobalsOrKeywords }], isNewIdentifierLocation: true, isGlobalCompletion: false }, { marker: ["6", "8", "12", "14"], exact: undefined, isGlobalCompletion: false }, { marker: "2", exact: ["a.ts", "file.ts"], isGlobalCompletion: false, isNewIdentifierLocation: true }, { marker: ["4", "19"], exact: [], isGlobalCompletion: false }, diff --git a/tests/cases/fourslash/server/nonJsDeclarationFilePathCompletions.ts b/tests/cases/fourslash/server/nonJsDeclarationFilePathCompletions.ts new file mode 100644 index 0000000000000..f3eb9713fedea --- /dev/null +++ b/tests/cases/fourslash/server/nonJsDeclarationFilePathCompletions.ts @@ -0,0 +1,14 @@ +/// + +// @allowArbitraryExtensions: true +// @Filename: /project/mod.d.html.ts +////export declare class HtmlModuleThing {} + +// @Filename: /project/node_modules/package/mod.d.html.ts +////export declare class PackageHtmlModuleThing {} + +// @Filename: /project/usage.ts +////import { HtmlModuleThing } from ".//*1*/"; +////import { PackageHtmlModuleThing } from "package//*2*/"; + +verify.baselineCompletions();