diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 480f7189fce31..ef9c28775cd43 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -6560,9 +6560,7 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker { cb: (context: NodeBuilderContext) => T, out?: WriterContextOut, ): T | undefined { - const moduleResolverHost = tracker?.trackSymbol ? tracker.moduleResolverHost : - (internalFlags || InternalNodeBuilderFlags.None) & InternalNodeBuilderFlags.DoNotIncludeSymbolChain ? createBasicNodeBuilderModuleSpecifierResolutionHost(host) : - undefined; + const moduleResolverHost = tracker?.moduleResolverHost ?? createBasicNodeBuilderModuleSpecifierResolutionHost(host); flags = flags || NodeBuilderFlags.None; const maxTruncationLength = maximumLength || (flags & NodeBuilderFlags.NoTruncation ? noTruncationMaximumTruncationLength : defaultMaximumTruncationLength); diff --git a/tests/baselines/reference/allowSyntheticDefaultImportsCanPaintCrossModuleDeclaration.types b/tests/baselines/reference/allowSyntheticDefaultImportsCanPaintCrossModuleDeclaration.types index 9f771a55b3ab4..ad1d8b473cd9d 100644 --- a/tests/baselines/reference/allowSyntheticDefaultImportsCanPaintCrossModuleDeclaration.types +++ b/tests/baselines/reference/allowSyntheticDefaultImportsCanPaintCrossModuleDeclaration.types @@ -21,14 +21,14 @@ export declare function styled(): Color; === file2.ts === import { styled } from "./file1"; ->styled : () => import("color").default -> : ^^^^^^ ^^^^^^^ ^^^^^^^ +>styled : () => import("./color").default +> : ^^^^^^ ^^^^^^^^^ ^^^^^^^ export const A = styled(); ->A : import("color").default -> : ^^^^^^^^^^^^^^^^^^^^^^^ ->styled() : import("color").default -> : ^^^^^^^^^^^^^^^^^^^^^^^ ->styled : () => import("color").default -> : ^^^^^^ ^^^^^^^ ^^^^^^^ +>A : import("./color").default +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled() : import("./color").default +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled : () => import("./color").default +> : ^^^^^^ ^^^^^^^^^ ^^^^^^^ diff --git a/tests/baselines/reference/allowsImportingTsExtension.symbols b/tests/baselines/reference/allowsImportingTsExtension.symbols index a08e00fcf5407..5855682af68bc 100644 --- a/tests/baselines/reference/allowsImportingTsExtension.symbols +++ b/tests/baselines/reference/allowsImportingTsExtension.symbols @@ -23,7 +23,7 @@ type __A = import("./a.ts").A; // ok const aPromise = import("./a.ts"); // error >aPromise : Symbol(aPromise, Decl(b.ts, 4, 5)) ->"./a.ts" : Symbol("a", Decl(a.ts, 0, 0)) +>"./a.ts" : Symbol("./a.ts", Decl(a.ts, 0, 0)) === c.ts === import type { A } from "./a.d.ts"; // ok @@ -40,5 +40,5 @@ type __A = import("./a.d.ts").A; // ok const aPromise = import("./a.d.ts"); // error >aPromise : Symbol(aPromise, Decl(c.ts, 4, 5)) ->"./a.d.ts" : Symbol("a", Decl(a.ts, 0, 0)) +>"./a.d.ts" : Symbol("./a.d.ts", Decl(a.ts, 0, 0)) diff --git a/tests/baselines/reference/allowsImportingTsExtension.types b/tests/baselines/reference/allowsImportingTsExtension.types index c1fe54623e545..f2f6bab816d99 100644 --- a/tests/baselines/reference/allowsImportingTsExtension.types +++ b/tests/baselines/reference/allowsImportingTsExtension.types @@ -27,10 +27,10 @@ type __A = import("./a.ts").A; // ok > : ^ const aPromise = import("./a.ts"); // error ->aPromise : Promise -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->import("./a.ts") : Promise -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>aPromise : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./a.ts") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >"./a.ts" : "./a.ts" > : ^^^^^^^^ @@ -51,10 +51,10 @@ type __A = import("./a.d.ts").A; // ok > : ^ const aPromise = import("./a.d.ts"); // error ->aPromise : Promise -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->import("./a.d.ts") : Promise -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>aPromise : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./a.d.ts") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >"./a.d.ts" : "./a.d.ts" > : ^^^^^^^^^^ diff --git a/tests/baselines/reference/ambientExportDefaultErrors.types b/tests/baselines/reference/ambientExportDefaultErrors.types index 8a94feba8dff7..0e59b5f8c30a1 100644 --- a/tests/baselines/reference/ambientExportDefaultErrors.types +++ b/tests/baselines/reference/ambientExportDefaultErrors.types @@ -18,8 +18,8 @@ export default 2 + 2; > : ^ export as namespace Foo; ->Foo : typeof import("foo") -> : ^^^^^^^^^^^^^^^^^^^^ +>Foo : typeof import("./foo") +> : ^^^^^^^^^^^^^^^^^^^^^^ === foo2.d.ts === export = 2 + 2; diff --git a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.types b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.types index a4b3790832021..431b94bc25a33 100644 --- a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.types +++ b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.types @@ -3,7 +3,7 @@ === Class.ts === import { Configurable } from "./Configurable" >Configurable : >(base: T) => T -> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^ ^^ ^^^^^ +> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^ ^^ ^^^^^ export class HiddenClass {} >HiddenClass : HiddenClass @@ -15,7 +15,7 @@ export class ActualClass extends Configurable(HiddenClass) {} >Configurable(HiddenClass) : HiddenClass > : ^^^^^^^^^^^ >Configurable : >(base: T) => T -> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^ ^^ ^^^^^ +> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^ ^^ ^^^^^ >HiddenClass : typeof HiddenClass > : ^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.types b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.types index 28dfac47372a5..cdbbc1dc744e5 100644 --- a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.types +++ b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.types @@ -59,8 +59,8 @@ export function Timestamped(Base: TBase) { import { wrapClass, Timestamped } from "./wrapClass"; >wrapClass : (param: any) => typeof Wrapped > : ^ ^^ ^^^^^^^^^^^^^^^^^^^ ->Timestamped : (Base: TBase) => { new (...args: any[]): (Anonymous class); prototype: Timestamped.(Anonymous class); } & TBase -> : ^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Timestamped : (Base: TBase) => { new (...args: any[]): (Anonymous class); prototype: Timestamped.(Anonymous class); } & TBase +> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export default wrapClass(0); >wrapClass(0) : typeof Wrapped @@ -88,8 +88,8 @@ export class TimestampedUser extends Timestamped(User) { > : ^^^^^^^^^^^^^^^ >Timestamped(User) : Timestamped.(Anonymous class) & User > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->Timestamped : (Base: TBase) => { new (...args: any[]): (Anonymous class); prototype: Timestamped.(Anonymous class); } & TBase -> : ^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Timestamped : (Base: TBase) => { new (...args: any[]): (Anonymous class); prototype: Timestamped.(Anonymous class); } & TBase +> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^ ^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >User : typeof User > : ^^^^^^^^^^^ diff --git a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_syntax.types b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_syntax.types index 6129efe319ab1..b316f2b6fadde 100644 --- a/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_syntax.types +++ b/tests/baselines/reference/arbitraryModuleNamespaceIdentifiers_syntax.types @@ -28,8 +28,8 @@ export { foo as "valid 3" } from "./values-valid"; > : ^^^ export * as "valid 4" from "./values-valid"; ->"valid 4" : typeof import("values-valid") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"valid 4" : typeof import("./values-valid") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ === values-bad-import.ts === import { foo as "invalid 2" } from "./values-valid"; @@ -82,8 +82,8 @@ export type { foo as "valid 3" } from "./type-decls-valid"; > : ^^^ export type * as "valid 4" from "./type-decls-valid"; ->"valid 4" : typeof import("type-decls-valid") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>"valid 4" : typeof import("./type-decls-valid") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ === type-decls-bad-import.ts === import type { foo as "invalid 2" } from "./type-decls-valid"; diff --git a/tests/baselines/reference/assignmentToVoidZero1.symbols b/tests/baselines/reference/assignmentToVoidZero1.symbols index f3a34be94c795..5da056c67209f 100644 --- a/tests/baselines/reference/assignmentToVoidZero1.symbols +++ b/tests/baselines/reference/assignmentToVoidZero1.symbols @@ -4,10 +4,10 @@ // #38552 exports.y = exports.x = void 0; >exports.y : Symbol(y, Decl(assignmentToVoidZero1.js, 2, 14)) ->exports : Symbol("assignmentToVoidZero1", Decl(assignmentToVoidZero1.js, 0, 0)) +>exports : Symbol("./assignmentToVoidZero1", Decl(assignmentToVoidZero1.js, 0, 0)) >y : Symbol(y, Decl(assignmentToVoidZero1.js, 2, 14)) >exports.x : Symbol(x, Decl(assignmentToVoidZero1.js, 1, 31)) ->exports : Symbol("assignmentToVoidZero1", Decl(assignmentToVoidZero1.js, 0, 0)) +>exports : Symbol("./assignmentToVoidZero1", Decl(assignmentToVoidZero1.js, 0, 0)) >x : Symbol(x, Decl(assignmentToVoidZero1.js, 1, 31)) exports.x = 1; diff --git a/tests/baselines/reference/assignmentToVoidZero1.types b/tests/baselines/reference/assignmentToVoidZero1.types index ef98884f1ee14..03c21c2d89eb3 100644 --- a/tests/baselines/reference/assignmentToVoidZero1.types +++ b/tests/baselines/reference/assignmentToVoidZero1.types @@ -7,16 +7,16 @@ exports.y = exports.x = void 0; > : ^^^^^^^^^ >exports.y : 2 > : ^ ->exports : typeof import("assignmentToVoidZero1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./assignmentToVoidZero1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >y : 2 > : ^ >exports.x = void 0 : undefined > : ^^^^^^^^^ >exports.x : 1 > : ^ ->exports : typeof import("assignmentToVoidZero1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./assignmentToVoidZero1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >x : 1 > : ^ >void 0 : undefined @@ -29,8 +29,8 @@ exports.x = 1; > : ^ >exports.x : 1 > : ^ ->exports : typeof import("assignmentToVoidZero1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./assignmentToVoidZero1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >x : 1 > : ^ >1 : 1 @@ -41,8 +41,8 @@ exports.y = 2; > : ^ >exports.y : 2 > : ^ ->exports : typeof import("assignmentToVoidZero1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./assignmentToVoidZero1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >y : 2 > : ^ >2 : 2 diff --git a/tests/baselines/reference/assignmentToVoidZero2.symbols b/tests/baselines/reference/assignmentToVoidZero2.symbols index 5851d8de8c671..1c805cc54d4eb 100644 --- a/tests/baselines/reference/assignmentToVoidZero2.symbols +++ b/tests/baselines/reference/assignmentToVoidZero2.symbols @@ -7,7 +7,7 @@ exports.j = 1; >j : Symbol(j, Decl(assignmentToVoidZero2.js, 0, 0)) exports.k = void 0; ->exports : Symbol("assignmentToVoidZero2", Decl(assignmentToVoidZero2.js, 0, 0)) +>exports : Symbol("./assignmentToVoidZero2", Decl(assignmentToVoidZero2.js, 0, 0)) var o = {} >o : Symbol(o, Decl(assignmentToVoidZero2.js, 2, 3), Decl(assignmentToVoidZero2.js, 2, 10)) diff --git a/tests/baselines/reference/assignmentToVoidZero2.types b/tests/baselines/reference/assignmentToVoidZero2.types index 47472d1de9216..ef92ed3a512fd 100644 --- a/tests/baselines/reference/assignmentToVoidZero2.types +++ b/tests/baselines/reference/assignmentToVoidZero2.types @@ -6,8 +6,8 @@ exports.j = 1; > : ^ >exports.j : 1 > : ^ ->exports : typeof import("assignmentToVoidZero2") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./assignmentToVoidZero2") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >j : 1 > : ^ >1 : 1 @@ -18,8 +18,8 @@ exports.k = void 0; > : ^^^^^^^^^ >exports.k : any > : ^^^ ->exports : typeof import("assignmentToVoidZero2") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./assignmentToVoidZero2") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >k : any > : ^^^ >void 0 : undefined diff --git a/tests/baselines/reference/augmentExportEquals3.types b/tests/baselines/reference/augmentExportEquals3.types index 32d70fcb514e4..9a3b936a5ba91 100644 --- a/tests/baselines/reference/augmentExportEquals3.types +++ b/tests/baselines/reference/augmentExportEquals3.types @@ -2,12 +2,12 @@ === file1.ts === function foo() {} ->foo : typeof import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("./file1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ namespace foo { ->foo : typeof import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("./file1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ export var v = 1; >v : number @@ -16,8 +16,8 @@ namespace foo { > : ^ } export = foo; ->foo : typeof import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("./file1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ === file2.ts === import x = require("./file1"); diff --git a/tests/baselines/reference/augmentExportEquals3_1.types b/tests/baselines/reference/augmentExportEquals3_1.types index 0cb8ad7e4c188..cf294d19e9c82 100644 --- a/tests/baselines/reference/augmentExportEquals3_1.types +++ b/tests/baselines/reference/augmentExportEquals3_1.types @@ -6,20 +6,20 @@ declare module "file1" { > : ^^^^^^^^^^^^^^^^^^^^^^ function foo(): void; ->foo : typeof import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("file1") +> : ^^^^^^^^^^^^^^^^^^^^^^ namespace foo { ->foo : typeof import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("file1") +> : ^^^^^^^^^^^^^^^^^^^^^^ export var v: number; >v : number > : ^^^^^^ } export = foo; ->foo : typeof import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("file1") +> : ^^^^^^^^^^^^^^^^^^^^^^ } diff --git a/tests/baselines/reference/augmentExportEquals4.types b/tests/baselines/reference/augmentExportEquals4.types index acb45a2884923..9b4a16ce9a3c3 100644 --- a/tests/baselines/reference/augmentExportEquals4.types +++ b/tests/baselines/reference/augmentExportEquals4.types @@ -2,12 +2,12 @@ === file1.ts === class foo {} ->foo : import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^ +>foo : import("./file1") +> : ^^^^^^^^^^^^^^^^^ namespace foo { ->foo : typeof import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("./file1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ export var v = 1; >v : number @@ -16,8 +16,8 @@ namespace foo { > : ^ } export = foo; ->foo : import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^ +>foo : import("./file1") +> : ^^^^^^^^^^^^^^^^^ === file2.ts === import x = require("./file1"); diff --git a/tests/baselines/reference/augmentExportEquals4_1.types b/tests/baselines/reference/augmentExportEquals4_1.types index 564b3a9d55e58..d935d6cf66854 100644 --- a/tests/baselines/reference/augmentExportEquals4_1.types +++ b/tests/baselines/reference/augmentExportEquals4_1.types @@ -6,20 +6,20 @@ declare module "file1" { > : ^^^^^^^^^^^^^^^^^^^^^^ class foo {} ->foo : import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^ +>foo : import("file1") +> : ^^^^^^^^^^^^^^^ namespace foo { ->foo : typeof import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("file1") +> : ^^^^^^^^^^^^^^^^^^^^^^ export var v: number; >v : number > : ^^^^^^ } export = foo; ->foo : import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^ +>foo : import("file1") +> : ^^^^^^^^^^^^^^^ } diff --git a/tests/baselines/reference/augmentExportEquals5.types b/tests/baselines/reference/augmentExportEquals5.types index bccab4f9d160e..f7d13ef14572f 100644 --- a/tests/baselines/reference/augmentExportEquals5.types +++ b/tests/baselines/reference/augmentExportEquals5.types @@ -12,14 +12,14 @@ declare module "express" { > : ^^^^^^^^^^^^^^^^^^^^^^^^ function e(): e.Express; ->e : typeof import("express.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>e : typeof import("express") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ >e : any > : ^^^ namespace e { ->e : typeof import("express.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>e : typeof import("express") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ interface IRoute { all(...handler: RequestHandler[]): IRoute; @@ -129,8 +129,8 @@ declare module "express" { } export = e; ->e : typeof import("express.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>e : typeof import("express") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ } === augmentation.ts === diff --git a/tests/baselines/reference/augmentExportEquals6.types b/tests/baselines/reference/augmentExportEquals6.types index e8f21b77c0cdc..2f7f42ee0daac 100644 --- a/tests/baselines/reference/augmentExportEquals6.types +++ b/tests/baselines/reference/augmentExportEquals6.types @@ -2,12 +2,12 @@ === file1.ts === class foo {} ->foo : import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^ +>foo : import("./file1") +> : ^^^^^^^^^^^^^^^^^ namespace foo { ->foo : typeof import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("./file1") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ export class A {} >A : A @@ -19,8 +19,8 @@ namespace foo { >a : any } export = foo; ->foo : import("file1.ts") -> : ^^^^^^^^^^^^^^^^^^ +>foo : import("./file1") +> : ^^^^^^^^^^^^^^^^^ === file2.ts === import x = require("./file1"); diff --git a/tests/baselines/reference/augmentExportEquals6_1.types b/tests/baselines/reference/augmentExportEquals6_1.types index bb9c3f7864638..a01019d106d47 100644 --- a/tests/baselines/reference/augmentExportEquals6_1.types +++ b/tests/baselines/reference/augmentExportEquals6_1.types @@ -6,20 +6,20 @@ declare module "file1" { > : ^^^^^^^^^^^^^^^^^^^^^^ class foo {} ->foo : import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^ +>foo : import("file1") +> : ^^^^^^^^^^^^^^^ namespace foo { ->foo : typeof import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : typeof import("file1") +> : ^^^^^^^^^^^^^^^^^^^^^^ class A {} >A : A > : ^ } export = foo; ->foo : import("file1.d.ts") -> : ^^^^^^^^^^^^^^^^^^^^ +>foo : import("file1") +> : ^^^^^^^^^^^^^^^ } diff --git a/tests/baselines/reference/bundledDtsLateExportRenaming.types b/tests/baselines/reference/bundledDtsLateExportRenaming.types index d47bc33186a7d..c59364433a38a 100644 --- a/tests/baselines/reference/bundledDtsLateExportRenaming.types +++ b/tests/baselines/reference/bundledDtsLateExportRenaming.types @@ -22,18 +22,18 @@ export function f() { === nested/derived.ts === import { f } from "./base"; ->f : () => import("index").B -> : ^^^^^^^^^^^^^^^^^^^^^^^ +>f : () => import("nested").B +> : ^^^^^^^^^^^^^^^^^^^^^^^^ export function g() { ->g : () => import("index").B -> : ^^^^^^^^^^^^^^^^^^^^^^^ +>g : () => import("nested").B +> : ^^^^^^^^^^^^^^^^^^^^^^^^ return f(); ->f() : import("index").B -> : ^^^^^^^^^^^^^^^^^ ->f : () => import("index").B -> : ^^^^^^^^^^^^^^^^^^^^^^^ +>f() : import("nested").B +> : ^^^^^^^^^^^^^^^^^^ +>f : () => import("nested").B +> : ^^^^^^^^^^^^^^^^^^^^^^^^ } === nested/index.ts === diff --git a/tests/baselines/reference/callbackCrossModule.types b/tests/baselines/reference/callbackCrossModule.types index 062a8a09257d0..aecc55d6353aa 100644 --- a/tests/baselines/reference/callbackCrossModule.types +++ b/tests/baselines/reference/callbackCrossModule.types @@ -38,8 +38,8 @@ function C() { function f(k) { >f : (k: import("./mod1").Con) => any > : ^ ^^ ^^^^^^^^ ->k : import("mod1").Con -> : ^^^^^^^^^^^^^^^^^^ +>k : import("./mod1").Con +> : ^^^^^^^^^^^^^^^^^^^^ if (1 === 2 - 1) { >1 === 2 - 1 : boolean @@ -57,8 +57,8 @@ function f(k) { } return k({ ok: true}) >k({ ok: true}) : any ->k : import("mod1").Con -> : ^^^^^^^^^^^^^^^^^^ +>k : import("./mod1").Con +> : ^^^^^^^^^^^^^^^^^^^^ >{ ok: true} : { ok: boolean; } > : ^^^^^^^^^^^^^^^^ >ok : boolean diff --git a/tests/baselines/reference/chained.types b/tests/baselines/reference/chained.types index fc03a0e78f194..3a32a86eb3626 100644 --- a/tests/baselines/reference/chained.types +++ b/tests/baselines/reference/chained.types @@ -25,10 +25,10 @@ import { Z as Y } from './a'; > : ^^^ export { B as C } from './a'; ->B : typeof import("/a").B -> : ^^^^^^^^^^^^^^^^^^^^^ ->C : typeof import("/a").B -> : ^^^^^^^^^^^^^^^^^^^^^ +>B : typeof import("./a").B +> : ^^^^^^^^^^^^^^^^^^^^^^ +>C : typeof import("./a").B +> : ^^^^^^^^^^^^^^^^^^^^^^ === /c.ts === import type { C } from './b'; diff --git a/tests/baselines/reference/chainedPrototypeAssignment.types b/tests/baselines/reference/chainedPrototypeAssignment.types index 83b0ad49f6e8d..bd4bc0b09622b 100644 --- a/tests/baselines/reference/chainedPrototypeAssignment.types +++ b/tests/baselines/reference/chainedPrototypeAssignment.types @@ -118,8 +118,8 @@ exports.A = A > : ^^^^^^^^ >exports.A : typeof A > : ^^^^^^^^ ->exports : typeof import("mod") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod") +> : ^^^^^^^^^^^^^^^^^^^^^^ >A : typeof A > : ^^^^^^^^ >A : typeof A @@ -130,8 +130,8 @@ exports.B = B > : ^^^^^^^^ >exports.B : typeof B > : ^^^^^^^^ ->exports : typeof import("mod") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod") +> : ^^^^^^^^^^^^^^^^^^^^^^ >B : typeof B > : ^^^^^^^^ >B : typeof B diff --git a/tests/baselines/reference/checkExportsObjectAssignProperty.symbols b/tests/baselines/reference/checkExportsObjectAssignProperty.symbols index 684b7bae7edfa..070403e88715c 100644 --- a/tests/baselines/reference/checkExportsObjectAssignProperty.symbols +++ b/tests/baselines/reference/checkExportsObjectAssignProperty.symbols @@ -148,7 +148,7 @@ Object.defineProperty(exports, "thing", { value: 42, writable: true }); >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"thing" : Symbol(thing, Decl(mod1.js, 0, 0)) >value : Symbol(value, Decl(mod1.js, 0, 41)) >writable : Symbol(writable, Decl(mod1.js, 0, 52)) @@ -157,7 +157,7 @@ Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"readonlyProp" : Symbol(readonlyProp, Decl(mod1.js, 0, 71)) >value : Symbol(value, Decl(mod1.js, 1, 48)) >writable : Symbol(writable, Decl(mod1.js, 1, 64)) @@ -166,7 +166,7 @@ Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"rwAccessors" : Symbol(rwAccessors, Decl(mod1.js, 1, 84)) >get : Symbol(get, Decl(mod1.js, 2, 47)) >set : Symbol(set, Decl(mod1.js, 2, 71)) @@ -176,7 +176,7 @@ Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } }); >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"readonlyAccessor" : Symbol(readonlyAccessor, Decl(mod1.js, 2, 97)) >get : Symbol(get, Decl(mod1.js, 3, 52)) @@ -184,7 +184,7 @@ Object.defineProperty(exports, "setonlyAccessor", { >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"setonlyAccessor" : Symbol(setonlyAccessor, Decl(mod1.js, 3, 79)) /** @param {string} str */ @@ -273,7 +273,7 @@ const q = require("./mod1").thing; >q : Symbol(q, Decl(index.js, 3, 5)) >require("./mod1").thing : Symbol(thing, Decl(mod1.js, 0, 0)) >require : Symbol(require) ->"./mod1" : Symbol("mod1", Decl(mod1.js, 0, 0)) +>"./mod1" : Symbol("./mod1", Decl(mod1.js, 0, 0)) >thing : Symbol(thing, Decl(mod1.js, 0, 0)) /** @@ -283,6 +283,6 @@ const u = require("./mod2").thing; >u : Symbol(u, Decl(index.js, 8, 5)) >require("./mod2").thing : Symbol(thing, Decl(mod2.js, 0, 0)) >require : Symbol(require) ->"./mod2" : Symbol("mod2", Decl(mod2.js, 0, 0)) +>"./mod2" : Symbol("./mod2", Decl(mod2.js, 0, 0)) >thing : Symbol(thing, Decl(mod2.js, 0, 0)) diff --git a/tests/baselines/reference/checkExportsObjectAssignProperty.types b/tests/baselines/reference/checkExportsObjectAssignProperty.types index 36a76a895f16d..50f79ef4a2af8 100644 --- a/tests/baselines/reference/checkExportsObjectAssignProperty.types +++ b/tests/baselines/reference/checkExportsObjectAssignProperty.types @@ -289,16 +289,16 @@ m2.setonlyAccessor = 0; === mod1.js === Object.defineProperty(exports, "thing", { value: 42, writable: true }); ->Object.defineProperty(exports, "thing", { value: 42, writable: true }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "thing", { value: 42, writable: true }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"thing" : "thing" > : ^^^^^^^ >{ value: 42, writable: true } : { value: number; writable: true; } @@ -313,16 +313,16 @@ Object.defineProperty(exports, "thing", { value: 42, writable: true }); > : ^^^^ Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false }); ->Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"readonlyProp" : "readonlyProp" > : ^^^^^^^^^^^^^^ >{ value: "Smith", writable: false } : { value: string; writable: false; } @@ -337,16 +337,16 @@ Object.defineProperty(exports, "readonlyProp", { value: "Smith", writable: false > : ^^^^^ Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } }); ->Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { /*ignore*/ } }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"rwAccessors" : "rwAccessors" > : ^^^^^^^^^^^^^ >{ get() { return 98122 }, set(_) { /*ignore*/ } } : { get(): number; set(_: any): void; } @@ -361,16 +361,16 @@ Object.defineProperty(exports, "rwAccessors", { get() { return 98122 }, set(_) { > : ^^^ Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } }); ->Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"readonlyAccessor" : "readonlyAccessor" > : ^^^^^^^^^^^^^^^^^^ >{ get() { return 21.75 } } : { get(): number; } @@ -381,16 +381,16 @@ Object.defineProperty(exports, "readonlyAccessor", { get() { return 21.75 } }); > : ^^^^^ Object.defineProperty(exports, "setonlyAccessor", { ->Object.defineProperty(exports, "setonlyAccessor", { /** @param {string} str */ set(str) { this.rwAccessors = Number(str) }}) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "setonlyAccessor", { /** @param {string} str */ set(str) { this.rwAccessors = Number(str) }}) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"setonlyAccessor" : "setonlyAccessor" > : ^^^^^^^^^^^^^^^^^ >{ /** @param {string} str */ set(str) { this.rwAccessors = Number(str) }} : { set(str: string): void; } @@ -584,8 +584,8 @@ const q = require("./mod1").thing; > : ^^^^^^ >require("./mod1").thing : number > : ^^^^^^ ->require("./mod1") : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require("./mod1") : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >require : any > : ^^^ >"./mod1" : "./mod1" @@ -601,8 +601,8 @@ const u = require("./mod2").thing; > : ^^^^^^ >require("./mod2").thing : string > : ^^^^^^ ->require("./mod2") : typeof import("mod2") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require("./mod2") : typeof import("./mod2") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >require : any > : ^^^ >"./mod2" : "./mod2" diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment1.types b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment1.types index 75a1245873ce4..f88287eedf3a3 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment1.types +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment1.types @@ -20,10 +20,10 @@ export default { c: false }; === b.js === import a from "./a"; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ a; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment2.types b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment2.types index bd7ab16cc3146..06b106a7edf41 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment2.types +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment2.types @@ -25,10 +25,10 @@ export default { c: false }; === c.js === import b from "./b"; ->b : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>b : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ b; ->b : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>b : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment3.types b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment3.types index 22101bd3bd2f7..d3e1c7149de27 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment3.types +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment3.types @@ -26,10 +26,10 @@ export default bar; === b.js === import a from "./a"; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ a; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment5.types b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment5.types index 4744b7c0c42df..262ac5d8f2a7d 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment5.types +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment5.types @@ -24,10 +24,10 @@ export default { a: 1, b: 1 }; === b.js === import a from "./a"; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ a; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment6.types b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment6.types index f807d291913df..2fbc5620435ac 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment6.types +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment6.types @@ -28,10 +28,10 @@ export default { a: 1, b: 1, c: 1 }; === b.js === import a from "./a"; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ a; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment7.types b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment7.types index 38da67a73ce94..3f3d0c6ddcee9 100644 --- a/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment7.types +++ b/tests/baselines/reference/checkJsdocTypeTagOnExportAssignment7.types @@ -34,10 +34,10 @@ export default abc; === b.js === import a from "./a"; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ a; ->a : import("a").Foo -> : ^^^^^^^^^^^^^^^ +>a : import("./a").Foo +> : ^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/checkMergedGlobalUMDSymbol.types b/tests/baselines/reference/checkMergedGlobalUMDSymbol.types index d85183549440e..980a1195d5c40 100644 --- a/tests/baselines/reference/checkMergedGlobalUMDSymbol.types +++ b/tests/baselines/reference/checkMergedGlobalUMDSymbol.types @@ -16,8 +16,8 @@ import * as _three from './three'; > : ^^^^^^^^^^^^^ export as namespace THREE; ->THREE : typeof import("global") -> : ^^^^^^^^^^^^^^^^^^^^^^^ +>THREE : typeof import("./global") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ declare global { >global : typeof global @@ -32,8 +32,8 @@ declare global { === test.ts === const m = THREE ->m : typeof import("three") -> : ^^^^^^^^^^^^^^^^^^^^^^ ->THREE : typeof import("three") -> : ^^^^^^^^^^^^^^^^^^^^^^ +>m : typeof import("./three") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>THREE : typeof import("./three") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/checkOtherObjectAssignProperty.symbols b/tests/baselines/reference/checkOtherObjectAssignProperty.symbols index a3ba335da8f6f..9f8ca5680d3b4 100644 --- a/tests/baselines/reference/checkOtherObjectAssignProperty.symbols +++ b/tests/baselines/reference/checkOtherObjectAssignProperty.symbols @@ -69,7 +69,7 @@ Object.defineProperty(exports, "thing", obj); >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"thing" : Symbol(thing, Decl(mod1.js, 0, 42)) >obj : Symbol(obj, Decl(mod1.js, 0, 5)) @@ -83,7 +83,7 @@ Object.defineProperty(exports, str, { value: 42, writable: true }); >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >str : Symbol(str, Decl(mod1.js, 6, 3)) >value : Symbol(value, Decl(mod1.js, 7, 37)) >writable : Symbol(writable, Decl(mod1.js, 7, 48)) @@ -95,7 +95,7 @@ Object.defineProperty(exports, propName, { value: 42, writable: true }); >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >propName : Symbol(propName, Decl(mod1.js, 9, 5)) >value : Symbol(value, Decl(mod1.js, 10, 42)) >writable : Symbol(writable, Decl(mod1.js, 10, 53)) @@ -105,14 +105,14 @@ Object.defineProperty(exports, "bad1", { }); >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"bad1" : Symbol(bad1, Decl(mod1.js, 10, 72)) Object.defineProperty(exports, "bad2", { get() { return 12 }, value: "no" }); >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"bad2" : Symbol(bad2, Decl(mod1.js, 13, 44)) >get : Symbol(get, Decl(mod1.js, 14, 40)) >value : Symbol(value, Decl(mod1.js, 14, 61)) @@ -121,7 +121,7 @@ Object.defineProperty(exports, "bad3", { writable: true }); >Object.defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) >Object : Symbol(Object, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --)) >defineProperty : Symbol(ObjectConstructor.defineProperty, Decl(lib.es5.d.ts, --, --)) ->exports : Symbol("mod1", Decl(mod1.js, 0, 0)) +>exports : Symbol("./mod1", Decl(mod1.js, 0, 0)) >"bad3" : Symbol(bad3, Decl(mod1.js, 14, 77)) >writable : Symbol(writable, Decl(mod1.js, 15, 40)) diff --git a/tests/baselines/reference/checkOtherObjectAssignProperty.types b/tests/baselines/reference/checkOtherObjectAssignProperty.types index 4e818ff29d8df..aeae325c42ecd 100644 --- a/tests/baselines/reference/checkOtherObjectAssignProperty.types +++ b/tests/baselines/reference/checkOtherObjectAssignProperty.types @@ -148,16 +148,16 @@ const obj = { value: 42, writable: true }; > : ^^^^ Object.defineProperty(exports, "thing", obj); ->Object.defineProperty(exports, "thing", obj) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "thing", obj) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"thing" : "thing" > : ^^^^^^^ >obj : { value: number; writable: boolean; } @@ -175,16 +175,16 @@ let str = /** @type {string} */("other"); > : ^^^^^^^ Object.defineProperty(exports, str, { value: 42, writable: true }); ->Object.defineProperty(exports, str, { value: 42, writable: true }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, str, { value: 42, writable: true }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >str : string > : ^^^^^^ >{ value: 42, writable: true } : { value: number; writable: true; } @@ -205,16 +205,16 @@ const propName = "prop" > : ^^^^^^ Object.defineProperty(exports, propName, { value: 42, writable: true }); ->Object.defineProperty(exports, propName, { value: 42, writable: true }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, propName, { value: 42, writable: true }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >propName : "prop" > : ^^^^^^ >{ value: 42, writable: true } : { value: number; writable: true; } @@ -230,32 +230,32 @@ Object.defineProperty(exports, propName, { value: 42, writable: true }); Object.defineProperty(exports, "bad1", { }); ->Object.defineProperty(exports, "bad1", { }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "bad1", { }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"bad1" : "bad1" > : ^^^^^^ >{ } : {} > : ^^ Object.defineProperty(exports, "bad2", { get() { return 12 }, value: "no" }); ->Object.defineProperty(exports, "bad2", { get() { return 12 }, value: "no" }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "bad2", { get() { return 12 }, value: "no" }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"bad2" : "bad2" > : ^^^^^^ >{ get() { return 12 }, value: "no" } : { get(): number; value: string; } @@ -270,16 +270,16 @@ Object.defineProperty(exports, "bad2", { get() { return 12 }, value: "no" }); > : ^^^^ Object.defineProperty(exports, "bad3", { writable: true }); ->Object.defineProperty(exports, "bad3", { writable: true }) : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.defineProperty(exports, "bad3", { writable: true }) : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >Object.defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >defineProperty : (o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType) => T > : ^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >"bad3" : "bad3" > : ^^^^^^ >{ writable: true } : { writable: true; } diff --git a/tests/baselines/reference/checkerInitializationCrash.types b/tests/baselines/reference/checkerInitializationCrash.types index 62a2daf6d9906..b8b01a02b24b6 100644 --- a/tests/baselines/reference/checkerInitializationCrash.types +++ b/tests/baselines/reference/checkerInitializationCrash.types @@ -78,8 +78,8 @@ declare namespace React { === /node_modules/preact/index.d.ts === export as namespace preact; ->preact : typeof import("/node_modules/preact/index") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>preact : typeof import("preact") +> : ^^^^^^^^^^^^^^^^^^^^^^^ export interface VNode

{} diff --git a/tests/baselines/reference/commonJSAliasedExport.symbols b/tests/baselines/reference/commonJSAliasedExport.symbols index 7fc751332c2fa..7bb5f39d31d20 100644 --- a/tests/baselines/reference/commonJSAliasedExport.symbols +++ b/tests/baselines/reference/commonJSAliasedExport.symbols @@ -4,7 +4,7 @@ const { funky } = require('./commonJSAliasedExport'); >funky : Symbol(funky, Decl(bug43713.js, 0, 7)) >require : Symbol(require) ->'./commonJSAliasedExport' : Symbol("commonJSAliasedExport", Decl(commonJSAliasedExport.js, 0, 0)) +>'./commonJSAliasedExport' : Symbol("./commonJSAliasedExport", Decl(commonJSAliasedExport.js, 0, 0)) /** @type {boolean} */ var diddy diff --git a/tests/baselines/reference/commonJSImportClassTypeReference.symbols b/tests/baselines/reference/commonJSImportClassTypeReference.symbols index bbbb11b643a95..4c2e0f3dba2df 100644 --- a/tests/baselines/reference/commonJSImportClassTypeReference.symbols +++ b/tests/baselines/reference/commonJSImportClassTypeReference.symbols @@ -4,7 +4,7 @@ const { K } = require("./mod1"); >K : Symbol(K, Decl(main.js, 0, 7)) >require : Symbol(require) ->"./mod1" : Symbol("mod1", Decl(mod1.js, 0, 0)) +>"./mod1" : Symbol("./mod1", Decl(mod1.js, 0, 0)) /** @param {K} k */ function f(k) { diff --git a/tests/baselines/reference/commonJSImportClassTypeReference.types b/tests/baselines/reference/commonJSImportClassTypeReference.types index 9eaaaaedf3fca..d4eb0f6ff86a8 100644 --- a/tests/baselines/reference/commonJSImportClassTypeReference.types +++ b/tests/baselines/reference/commonJSImportClassTypeReference.types @@ -4,8 +4,8 @@ const { K } = require("./mod1"); >K : typeof K > : ^^^^^^^^ ->require("./mod1") : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require("./mod1") : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >require : any >"./mod1" : "./mod1" > : ^^^^^^^^ @@ -49,8 +49,8 @@ exports.K = K; > : ^^^^^^^^ >exports.K : typeof K > : ^^^^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >K : typeof K > : ^^^^^^^^ >K : typeof K diff --git a/tests/baselines/reference/commonJSImportExportedClassExpression.symbols b/tests/baselines/reference/commonJSImportExportedClassExpression.symbols index 5a94637c05fa9..66ebdae50b560 100644 --- a/tests/baselines/reference/commonJSImportExportedClassExpression.symbols +++ b/tests/baselines/reference/commonJSImportExportedClassExpression.symbols @@ -4,7 +4,7 @@ const { K } = require("./mod1"); >K : Symbol(K, Decl(main.js, 0, 7)) >require : Symbol(require) ->"./mod1" : Symbol("mod1", Decl(mod1.js, 0, 0)) +>"./mod1" : Symbol("./mod1", Decl(mod1.js, 0, 0)) /** @param {K} k */ function f(k) { diff --git a/tests/baselines/reference/commonJSImportExportedClassExpression.types b/tests/baselines/reference/commonJSImportExportedClassExpression.types index 2f5babcdada38..53db19aad0da0 100644 --- a/tests/baselines/reference/commonJSImportExportedClassExpression.types +++ b/tests/baselines/reference/commonJSImportExportedClassExpression.types @@ -4,8 +4,8 @@ const { K } = require("./mod1"); >K : typeof K > : ^^^^^^^^ ->require("./mod1") : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require("./mod1") : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >require : any >"./mod1" : "./mod1" > : ^^^^^^^^ @@ -34,8 +34,8 @@ exports.K = class K { > : ^^^^^^^^ >exports.K : typeof K > : ^^^^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >K : typeof K > : ^^^^^^^^ >class K { values() { }} : typeof K diff --git a/tests/baselines/reference/commonJSImportNestedClassTypeReference.symbols b/tests/baselines/reference/commonJSImportNestedClassTypeReference.symbols index 3f04fb36100eb..c49c5aab14d59 100644 --- a/tests/baselines/reference/commonJSImportNestedClassTypeReference.symbols +++ b/tests/baselines/reference/commonJSImportNestedClassTypeReference.symbols @@ -4,7 +4,7 @@ const { K } = require("./mod1"); >K : Symbol(K, Decl(main.js, 0, 7)) >require : Symbol(require) ->"./mod1" : Symbol("mod1", Decl(mod1.js, 0, 0)) +>"./mod1" : Symbol("./mod1", Decl(mod1.js, 0, 0)) /** @param {K} k */ function f(k) { diff --git a/tests/baselines/reference/commonJSImportNestedClassTypeReference.types b/tests/baselines/reference/commonJSImportNestedClassTypeReference.types index 15fd00dd56467..125130305eb6e 100644 --- a/tests/baselines/reference/commonJSImportNestedClassTypeReference.types +++ b/tests/baselines/reference/commonJSImportNestedClassTypeReference.types @@ -4,8 +4,8 @@ const { K } = require("./mod1"); >K : typeof K > : ^^^^^^^^ ->require("./mod1") : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require("./mod1") : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >require : any >"./mod1" : "./mod1" > : ^^^^^^^^ @@ -67,8 +67,8 @@ exports.K = NS.K; > : ^^^^^^^^ >exports.K : typeof K > : ^^^^^^^^ ->exports : typeof import("mod1") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./mod1") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >K : typeof K > : ^^^^^^^^ >NS.K : typeof K diff --git a/tests/baselines/reference/commonJSReexport.symbols b/tests/baselines/reference/commonJSReexport.symbols index 46a3017f6b9e1..863423c67528f 100644 --- a/tests/baselines/reference/commonJSReexport.symbols +++ b/tests/baselines/reference/commonJSReexport.symbols @@ -5,7 +5,7 @@ const { hardline } = require('./second').nested; >hardline : Symbol(hardline, Decl(main.js, 0, 7)) >require('./second').nested : Symbol(nested, Decl(second.js, 0, 18)) >require : Symbol(require) ->'./second' : Symbol("second", Decl(second.js, 0, 0)) +>'./second' : Symbol("./second", Decl(second.js, 0, 0)) >nested : Symbol(nested, Decl(second.js, 0, 18)) hardline @@ -35,7 +35,7 @@ module.exports = { nested: require('./first') >nested : Symbol(nested, Decl(second.js, 0, 18)) >require : Symbol(require) ->'./first' : Symbol("first", Decl(first.js, 0, 0)) +>'./first' : Symbol("./first", Decl(first.js, 0, 0)) }; diff --git a/tests/baselines/reference/commonJSReexport.types b/tests/baselines/reference/commonJSReexport.types index 508e235a4a84c..993a5ab8a1920 100644 --- a/tests/baselines/reference/commonJSReexport.types +++ b/tests/baselines/reference/commonJSReexport.types @@ -4,15 +4,15 @@ const { hardline } = require('./second').nested; >hardline : { type: string; } > : ^^^^^^^^^^^^^^^^^ ->require('./second').nested : typeof import("first") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->require('./second') : { nested: typeof import("first"); } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>require('./second').nested : typeof import("./first") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>require('./second') : { nested: typeof import("./first"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >require : any >'./second' : "./second" > : ^^^^^^^^^^ ->nested : typeof import("first") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>nested : typeof import("./first") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ hardline >hardline : { type: string; } @@ -49,22 +49,22 @@ module.exports = { === second.js === module.exports = { ->module.exports = { nested: require('./first')} : { nested: typeof import("first"); } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->module.exports : { nested: typeof import("first"); } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->module : { exports: { nested: typeof import("first"); }; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->exports : { nested: typeof import("first"); } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->{ nested: require('./first')} : { nested: typeof import("first"); } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports = { nested: require('./first')} : { nested: typeof import("./first"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module.exports : { nested: typeof import("./first"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>module : { exports: { nested: typeof import("./first"); }; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>exports : { nested: typeof import("./first"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ nested: require('./first')} : { nested: typeof import("./first"); } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ nested: require('./first') ->nested : typeof import("first") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->require('./first') : typeof import("first") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>nested : typeof import("./first") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>require('./first') : typeof import("./first") +> : ^^^^^^^^^^^^^^^^^^^^^^^^ >require : any >'./first' : "./first" > : ^^^^^^^^^ diff --git a/tests/baselines/reference/commonJsImportBindingElementNarrowType.symbols b/tests/baselines/reference/commonJsImportBindingElementNarrowType.symbols index 8b821ca105618..e9db16d02a552 100644 --- a/tests/baselines/reference/commonJsImportBindingElementNarrowType.symbols +++ b/tests/baselines/reference/commonJsImportBindingElementNarrowType.symbols @@ -4,7 +4,7 @@ const { a } = require("./foo"); >a : Symbol(a, Decl(bar.js, 0, 7)) >require : Symbol(require) ->"./foo" : Symbol("/foo", Decl(foo.d.ts, 0, 0)) +>"./foo" : Symbol("./foo", Decl(foo.d.ts, 0, 0)) if (a) { >a : Symbol(a, Decl(bar.js, 0, 7)) diff --git a/tests/baselines/reference/commonJsImportBindingElementNarrowType.types b/tests/baselines/reference/commonJsImportBindingElementNarrowType.types index d17d0ffedb982..f32b655f3c295 100644 --- a/tests/baselines/reference/commonJsImportBindingElementNarrowType.types +++ b/tests/baselines/reference/commonJsImportBindingElementNarrowType.types @@ -4,8 +4,8 @@ const { a } = require("./foo"); >a : number | null > : ^^^^^^^^^^^^^ ->require("./foo") : typeof import("/foo") -> : ^^^^^^^^^^^^^^^^^^^^^ +>require("./foo") : typeof import("./foo") +> : ^^^^^^^^^^^^^^^^^^^^^^ >require : any >"./foo" : "./foo" > : ^^^^^^^ diff --git a/tests/baselines/reference/commonJsUnusedLocals.types b/tests/baselines/reference/commonJsUnusedLocals.types index bee16156f77e1..8a0ab65b5a8ce 100644 --- a/tests/baselines/reference/commonJsUnusedLocals.types +++ b/tests/baselines/reference/commonJsUnusedLocals.types @@ -12,8 +12,8 @@ exports.y = 1; > : ^ >exports.y : 1 > : ^ ->exports : typeof import("/a") -> : ^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./a") +> : ^^^^^^^^^^^^^^^^^^^^ >y : 1 > : ^ >1 : 1 diff --git a/tests/baselines/reference/commonjsAccessExports.symbols b/tests/baselines/reference/commonjsAccessExports.symbols index a3b3339fad839..c71718703d51d 100644 --- a/tests/baselines/reference/commonjsAccessExports.symbols +++ b/tests/baselines/reference/commonjsAccessExports.symbols @@ -8,7 +8,7 @@ exports.x = 0; exports.x; >exports.x : Symbol(x, Decl(a.js, 0, 0)) ->exports : Symbol("/a", Decl(a.js, 0, 0)) +>exports : Symbol("./a", Decl(a.js, 0, 0)) >x : Symbol(x, Decl(a.js, 0, 0)) // Works nested @@ -29,6 +29,6 @@ exports.x; const instance = new exports.Cls(); >instance : Symbol(instance, Decl(a.js, 11, 5)) >exports.Cls : Symbol(Cls, Decl(a.js, 4, 1)) ->exports : Symbol("/a", Decl(a.js, 0, 0)) +>exports : Symbol("./a", Decl(a.js, 0, 0)) >Cls : Symbol(Cls, Decl(a.js, 4, 1)) diff --git a/tests/baselines/reference/commonjsAccessExports.types b/tests/baselines/reference/commonjsAccessExports.types index 4838441a998ea..cb2a27f16659b 100644 --- a/tests/baselines/reference/commonjsAccessExports.types +++ b/tests/baselines/reference/commonjsAccessExports.types @@ -6,8 +6,8 @@ exports.x = 0; > : ^ >exports.x : 0 > : ^ ->exports : typeof import("/a") -> : ^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./a") +> : ^^^^^^^^^^^^^^^^^^^^ >x : 0 > : ^ >0 : 0 @@ -16,8 +16,8 @@ exports.x = 0; exports.x; >exports.x : 0 > : ^ ->exports : typeof import("/a") -> : ^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./a") +> : ^^^^^^^^^^^^^^^^^^^^ >x : 0 > : ^ @@ -29,8 +29,8 @@ exports.x; > : ^^^^^^^^^^ >exports.Cls : typeof Cls > : ^^^^^^^^^^ ->exports : typeof import("/a") -> : ^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./a") +> : ^^^^^^^^^^^^^^^^^^^^ >Cls : typeof Cls > : ^^^^^^^^^^ >function() { this.x = 0; } : typeof Cls @@ -56,8 +56,8 @@ const instance = new exports.Cls(); > : ^^^ >exports.Cls : typeof Cls > : ^^^^^^^^^^ ->exports : typeof import("/a") -> : ^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./a") +> : ^^^^^^^^^^^^^^^^^^^^ >Cls : typeof Cls > : ^^^^^^^^^^ diff --git a/tests/baselines/reference/conflictingDeclarationsImportFromNamespace1.types b/tests/baselines/reference/conflictingDeclarationsImportFromNamespace1.types index a03e6763b5da7..2011917c54be6 100644 --- a/tests/baselines/reference/conflictingDeclarationsImportFromNamespace1.types +++ b/tests/baselines/reference/conflictingDeclarationsImportFromNamespace1.types @@ -38,16 +38,16 @@ export = pick; === node_modules/@types/lodash/index.d.ts === /// export = _; ->_ : import("node_modules/@types/lodash/index.d.ts").LoDashStatic -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>_ : import("lodash").LoDashStatic +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export as namespace _; ->_ : import("node_modules/@types/lodash/index.d.ts").LoDashStatic -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>_ : import("lodash").LoDashStatic +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ declare const _: _.LoDashStatic; ->_ : import("node_modules/@types/lodash/index.d.ts").LoDashStatic -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>_ : import("lodash").LoDashStatic +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >_ : any > : ^^^ diff --git a/tests/baselines/reference/conflictingDeclarationsImportFromNamespace2.types b/tests/baselines/reference/conflictingDeclarationsImportFromNamespace2.types index d258c492aa683..321bbb8b21f28 100644 --- a/tests/baselines/reference/conflictingDeclarationsImportFromNamespace2.types +++ b/tests/baselines/reference/conflictingDeclarationsImportFromNamespace2.types @@ -38,16 +38,16 @@ export = pick; === node_modules/@types/lodash/index.d.ts === /// export = _; ->_ : import("node_modules/@types/lodash/index.d.ts").LoDashStatic -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>_ : import("lodash").LoDashStatic +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export as namespace _; ->_ : import("node_modules/@types/lodash/index.d.ts").LoDashStatic -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>_ : import("lodash").LoDashStatic +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ declare const _: _.LoDashStatic; ->_ : import("node_modules/@types/lodash/index.d.ts").LoDashStatic -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>_ : import("lodash").LoDashStatic +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >_ : any > : ^^^ diff --git a/tests/baselines/reference/constEnumNoEmitReexport.types b/tests/baselines/reference/constEnumNoEmitReexport.types index fea711d9a7461..ef333810e6b12 100644 --- a/tests/baselines/reference/constEnumNoEmitReexport.types +++ b/tests/baselines/reference/constEnumNoEmitReexport.types @@ -34,15 +34,15 @@ export default MyConstEnum; === ReExportDefault.ts === export { MyConstEnum as default } from './ConstEnum'; ->MyConstEnum : typeof import("ConstEnum").MyConstEnum -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->default : typeof import("ConstEnum").MyConstEnum -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MyConstEnum : typeof import("./ConstEnum").MyConstEnum +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>default : typeof import("./ConstEnum").MyConstEnum +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ === ReExport.ts === export { MyConstEnum } from './ConstEnum'; ->MyConstEnum : typeof import("ConstEnum").MyConstEnum -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MyConstEnum : typeof import("./ConstEnum").MyConstEnum +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ === Usage1.ts === import MyConstEnum1 from './ImportExportDefault'; diff --git a/tests/baselines/reference/constEnumNoPreserveDeclarationReexport.types b/tests/baselines/reference/constEnumNoPreserveDeclarationReexport.types index a02c91c1a7641..47ff155d23e97 100644 --- a/tests/baselines/reference/constEnumNoPreserveDeclarationReexport.types +++ b/tests/baselines/reference/constEnumNoPreserveDeclarationReexport.types @@ -24,10 +24,10 @@ export default MyConstEnum; === ReExport.d.ts === export { MyConstEnum as default } from './ConstEnum'; ->MyConstEnum : typeof import("ConstEnum").MyConstEnum -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->default : typeof import("ConstEnum").MyConstEnum -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MyConstEnum : typeof import("./ConstEnum").MyConstEnum +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>default : typeof import("./ConstEnum").MyConstEnum +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ === usages.ts === import {MyConstEnum} from "./ConstEnum"; diff --git a/tests/baselines/reference/constEnumPreserveEmitReexport.types b/tests/baselines/reference/constEnumPreserveEmitReexport.types index e7d739fedff5a..0db828b147b35 100644 --- a/tests/baselines/reference/constEnumPreserveEmitReexport.types +++ b/tests/baselines/reference/constEnumPreserveEmitReexport.types @@ -25,8 +25,8 @@ export default MyConstEnum; === ReExport.ts === export { MyConstEnum as default } from './ConstEnum'; ->MyConstEnum : typeof import("ConstEnum").MyConstEnum -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->default : typeof import("ConstEnum").MyConstEnum -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MyConstEnum : typeof import("./ConstEnum").MyConstEnum +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>default : typeof import("./ConstEnum").MyConstEnum +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/constructorFunctions2.symbols b/tests/baselines/reference/constructorFunctions2.symbols index 8d18ffd71879f..4fc3277171172 100644 --- a/tests/baselines/reference/constructorFunctions2.symbols +++ b/tests/baselines/reference/constructorFunctions2.symbols @@ -13,7 +13,7 @@ declare var module: any, exports: any; const A = require("./other"); >A : Symbol(A, Decl(index.js, 0, 5)) >require : Symbol(require, Decl(node.d.ts, 0, 0)) ->"./other" : Symbol("other", Decl(other.js, 0, 0)) +>"./other" : Symbol("./other", Decl(other.js, 0, 0)) const a = new A().id; >a : Symbol(a, Decl(index.js, 1, 5)) diff --git a/tests/baselines/reference/contextualTypedSpecialAssignment.symbols b/tests/baselines/reference/contextualTypedSpecialAssignment.symbols index 4d60e8fa76886..2a01ec7c13588 100644 --- a/tests/baselines/reference/contextualTypedSpecialAssignment.symbols +++ b/tests/baselines/reference/contextualTypedSpecialAssignment.symbols @@ -97,7 +97,7 @@ exports.x = { } exports.x >exports.x : Symbol(x, Decl(test.js, 36, 1)) ->exports : Symbol("test", Decl(test.js, 0, 0)) +>exports : Symbol("./test", Decl(test.js, 0, 0)) >x : Symbol(x, Decl(test.js, 36, 1)) /** @type {DoneStatus} */ diff --git a/tests/baselines/reference/contextualTypedSpecialAssignment.types b/tests/baselines/reference/contextualTypedSpecialAssignment.types index 8c5d1bbc1c6f6..4705c7b9f2f0d 100644 --- a/tests/baselines/reference/contextualTypedSpecialAssignment.types +++ b/tests/baselines/reference/contextualTypedSpecialAssignment.types @@ -144,8 +144,8 @@ exports.x = { > : ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^ >exports.x : DoneStatus > : ^^^^^^^^^^ ->exports : typeof import("test") -> : ^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./test") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >x : DoneStatus > : ^^^^^^^^^^ >{ status: "done", m(n) { }} : { status: "done"; m(n: number): void; } @@ -166,8 +166,8 @@ exports.x = { exports.x >exports.x : DoneStatus > : ^^^^^^^^^^ ->exports : typeof import("test") -> : ^^^^^^^^^^^^^^^^^^^^^ +>exports : typeof import("./test") +> : ^^^^^^^^^^^^^^^^^^^^^^^ >x : DoneStatus > : ^^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitAliasFromIndirectFile.types b/tests/baselines/reference/declarationEmitAliasFromIndirectFile.types index 655e12f022750..b24909a497f38 100644 --- a/tests/baselines/reference/declarationEmitAliasFromIndirectFile.types +++ b/tests/baselines/reference/declarationEmitAliasFromIndirectFile.types @@ -78,10 +78,10 @@ const fp = { l10ns: {} } as FlatpickrFn; > : ^^ export default fp.l10ns; ->fp.l10ns : { ar?: import("locale").CustomLocale; bg?: import("locale").CustomLocale; } & { default: import("locale").Locale; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ +>fp.l10ns : { ar?: import("./locale").CustomLocale; bg?: import("./locale").CustomLocale; } & { default: import("./locale").Locale; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ >fp : FlatpickrFn > : ^^^^^^^^^^^ ->l10ns : { ar?: import("locale").CustomLocale; bg?: import("locale").CustomLocale; } & { default: import("locale").Locale; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^ +>l10ns : { ar?: import("./locale").CustomLocale; bg?: import("./locale").CustomLocale; } & { default: import("./locale").Locale; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitAliasInlineing.types b/tests/baselines/reference/declarationEmitAliasInlineing.types index a03f57311a4ee..1757d9dd824ff 100644 --- a/tests/baselines/reference/declarationEmitAliasInlineing.types +++ b/tests/baselines/reference/declarationEmitAliasInlineing.types @@ -80,8 +80,8 @@ import {fn} from './a' > : ^ ^^^^^^^^^^ ^^ ^^^^^^^^ ^^^^^^^^^ ^^^ ^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^ ^^^^^^^^^ import {fnExp} from './aExp' ->fnExp : (v: import("aExp").O["prop"], p: Omit, key: keyof import("aExp").O, p2: Omit) => void -> : ^ ^^ ^^^^^^ ^ ^^ ^^ ^^^^^^ ^ ^^ ^^ ^^^^^^ ^^^ ^^ ^^^^^^ ^ ^^^^^^ ^ ^^^^^^^^^ +>fnExp : (v: import("./aExp").O["prop"], p: Omit, key: keyof import("./aExp").O, p2: Omit) => void +> : ^ ^^ ^^^^^^^^ ^ ^^ ^^ ^^^^^^^^ ^ ^^ ^^ ^^^^^^^^ ^^^ ^^ ^^^^^^^^ ^ ^^^^^^^^ ^ ^^^^^^^^^ export const f = fn; >f : (v: string, p: Omit<{ prop: string; prop2: string; }, "prop">, key: keyof { prop: string; prop2: string; }, p2: Omit<{ prop: string; prop2: string; }, "prop">) => void @@ -90,8 +90,8 @@ export const f = fn; > : ^ ^^^^^^^^^^ ^^ ^^^^^^^^ ^^^^^^^^^ ^^^ ^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^ ^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^ ^^^^^^^^^ export const fExp = fnExp; ->fExp : (v: import("aExp").O["prop"], p: Omit, key: keyof import("aExp").O, p2: Omit) => void -> : ^ ^^ ^^^^^^ ^ ^^ ^^ ^^^^^^ ^ ^^ ^^ ^^^^^^ ^^^ ^^ ^^^^^^ ^ ^^^^^^ ^ ^^^^^^^^^ ->fnExp : (v: import("aExp").O["prop"], p: Omit, key: keyof import("aExp").O, p2: Omit) => void -> : ^ ^^ ^^^^^^ ^ ^^ ^^ ^^^^^^ ^ ^^ ^^ ^^^^^^ ^^^ ^^ ^^^^^^ ^ ^^^^^^ ^ ^^^^^^^^^ +>fExp : (v: import("./aExp").O["prop"], p: Omit, key: keyof import("./aExp").O, p2: Omit) => void +> : ^ ^^ ^^^^^^^^ ^ ^^ ^^ ^^^^^^^^ ^ ^^ ^^ ^^^^^^^^ ^^^ ^^ ^^^^^^^^ ^ ^^^^^^^^ ^ ^^^^^^^^^ +>fnExp : (v: import("./aExp").O["prop"], p: Omit, key: keyof import("./aExp").O, p2: Omit) => void +> : ^ ^^ ^^^^^^^^ ^ ^^ ^^ ^^^^^^^^ ^ ^^ ^^ ^^^^^^^^ ^^^ ^^ ^^^^^^^^ ^ ^^^^^^^^ ^ ^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.types b/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.types index cd05cce259fb3..996f3ba2b2f38 100644 --- a/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.types +++ b/tests/baselines/reference/declarationEmitBundleWithAmbientReferences.types @@ -19,8 +19,8 @@ import { Result } from "lib/result"; > : ^^^ export type T = Result; ->T : import("src/datastore_result").T -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>T : import("datastore_result").T +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ === src/conditional_directive_field.ts === import * as DatastoreResult from "src/datastore_result"; diff --git a/tests/baselines/reference/declarationEmitCommonJsModuleReferencedType.types b/tests/baselines/reference/declarationEmitCommonJsModuleReferencedType.types index 48ec6ff7ec840..e7042fd2bbd22 100644 --- a/tests/baselines/reference/declarationEmitCommonJsModuleReferencedType.types +++ b/tests/baselines/reference/declarationEmitCommonJsModuleReferencedType.types @@ -37,26 +37,26 @@ export function bar(): RootProps; === r/entry.ts === import { foo } from "foo"; ->foo : () => [import("r/node_modules/foo/index").SomeProps, import("r/node_modules/foo/other").OtherProps, import("r/node_modules/foo/other/index").OtherIndexProps, import("r/node_modules/foo/node_modules/nested/index").NestedProps] -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ +>foo : () => [import("foo").SomeProps, import("foo/other").OtherProps, import("foo/other/index").OtherIndexProps, import("foo/node_modules/nested").NestedProps] +> : ^^^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ import { bar } from "root"; ->bar : () => import("node_modules/root/index").RootProps -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ +>bar : () => import("root").RootProps +> : ^^^^^^ ^^^^^^ ^^^^^^^^^ export const x = foo(); ->x : [import("r/node_modules/foo/index").SomeProps, import("r/node_modules/foo/other").OtherProps, import("r/node_modules/foo/other/index").OtherIndexProps, import("r/node_modules/foo/node_modules/nested/index").NestedProps] -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->foo() : [import("r/node_modules/foo/index").SomeProps, import("r/node_modules/foo/other").OtherProps, import("r/node_modules/foo/other/index").OtherIndexProps, import("r/node_modules/foo/node_modules/nested/index").NestedProps] -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->foo : () => [import("r/node_modules/foo/index").SomeProps, import("r/node_modules/foo/other").OtherProps, import("r/node_modules/foo/other/index").OtherIndexProps, import("r/node_modules/foo/node_modules/nested/index").NestedProps] -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ +>x : [import("foo").SomeProps, import("foo/other").OtherProps, import("foo/other/index").OtherIndexProps, import("foo/node_modules/nested").NestedProps] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo() : [import("foo").SomeProps, import("foo/other").OtherProps, import("foo/other/index").OtherIndexProps, import("foo/node_modules/nested").NestedProps] +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : () => [import("foo").SomeProps, import("foo/other").OtherProps, import("foo/other/index").OtherIndexProps, import("foo/node_modules/nested").NestedProps] +> : ^^^^^^ ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ export const y = bar(); ->y : import("node_modules/root/index").RootProps -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->bar() : import("node_modules/root/index").RootProps -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->bar : () => import("node_modules/root/index").RootProps -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ +>y : import("root").RootProps +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>bar() : import("root").RootProps +> : ^^^^^^^^^^^^^^^^^^^^^^^^ +>bar : () => import("root").RootProps +> : ^^^^^^ ^^^^^^ ^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitCrossFileCopiedGeneratedImportType.types b/tests/baselines/reference/declarationEmitCrossFileCopiedGeneratedImportType.types index ffc3b71256ec0..0596484813e68 100644 --- a/tests/baselines/reference/declarationEmitCrossFileCopiedGeneratedImportType.types +++ b/tests/baselines/reference/declarationEmitCrossFileCopiedGeneratedImportType.types @@ -29,20 +29,20 @@ export declare const e: { f: (foo: import("../projA").Foo) => boolean; >f : (foo: import("../projA").Foo) => boolean > : ^ ^^ ^^^^^ ->foo : import("projA/index").Foo -> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>foo : import("../projA").Foo +> : ^^^^^^^^^^^^^^^^^^^^^^ }; === projD/index.ts === import {e} from "../projC"; ->e : { f: (foo: import("projA/index").Foo) => boolean; } -> : ^^^^^ ^^^ +>e : { f: (foo: import("../projA").Foo) => boolean; } +> : ^^^^^ ^^^ export const d = {e}; ->d : { e: { f: (foo: import("projA/index").Foo) => boolean; }; } -> : ^^^^^^^^^^ ^^^^^^ ->{e} : { e: { f: (foo: import("projA/index").Foo) => boolean; }; } -> : ^^^^^^^^^^ ^^^^^^ ->e : { f: (foo: import("projA/index").Foo) => boolean; } -> : ^^^^^ ^^^ +>d : { e: { f: (foo: import("../projA").Foo) => boolean; }; } +> : ^^^^^^^^^^ ^^^^^^ +>{e} : { e: { f: (foo: import("../projA").Foo) => boolean; }; } +> : ^^^^^^^^^^ ^^^^^^ +>e : { f: (foo: import("../projA").Foo) => boolean; } +> : ^^^^^ ^^^ diff --git a/tests/baselines/reference/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols b/tests/baselines/reference/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols index 027a950cd3e59..4eb3b5550c042 100644 --- a/tests/baselines/reference/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols +++ b/tests/baselines/reference/declarationEmitDoesNotUseReexportedNamespaceAsLocal.symbols @@ -8,7 +8,7 @@ export function a() {} export const x = add(import("./sub")); >x : Symbol(x, Decl(index.ts, 0, 12)) >add : Symbol(add, Decl(index.ts, 1, 27)) ->"./sub" : Symbol("sub", Decl(sub.ts, 0, 0)) +>"./sub" : Symbol("./sub", Decl(sub.ts, 0, 0)) export * as Q from "./sub"; >Q : Symbol(Q, Decl(index.ts, 1, 6)) diff --git a/tests/baselines/reference/declarationEmitDoesNotUseReexportedNamespaceAsLocal.types b/tests/baselines/reference/declarationEmitDoesNotUseReexportedNamespaceAsLocal.types index eb1fa04abe6e0..4240fbd1b4307 100644 --- a/tests/baselines/reference/declarationEmitDoesNotUseReexportedNamespaceAsLocal.types +++ b/tests/baselines/reference/declarationEmitDoesNotUseReexportedNamespaceAsLocal.types @@ -7,20 +7,20 @@ export function a() {} === index.ts === export const x = add(import("./sub")); ->x : typeof import("sub") -> : ^^^^^^^^^^^^^^^^^^^^ ->add(import("./sub")) : typeof import("sub") -> : ^^^^^^^^^^^^^^^^^^^^ +>x : typeof import("./sub") +> : ^^^^^^^^^^^^^^^^^^^^^^ +>add(import("./sub")) : typeof import("./sub") +> : ^^^^^^^^^^^^^^^^^^^^^^ >add : (x: Promise) => T > : ^ ^^ ^^ ^^^^^ ->import("./sub") : Promise -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import("./sub") : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >"./sub" : "./sub" > : ^^^^^^^ export * as Q from "./sub"; ->Q : typeof import("sub") -> : ^^^^^^^^^^^^^^^^^^^^ +>Q : typeof import("./sub") +> : ^^^^^^^^^^^^^^^^^^^^^^ declare function add(x: Promise): T; >add : (x: Promise) => T diff --git a/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.symbols b/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.symbols index 819f5e60aaf0a..da2d053ff324f 100644 --- a/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.symbols +++ b/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.symbols @@ -28,7 +28,7 @@ export default (suit: Suit, rank: Rank) => ({suit, rank}); export let lazyCard = () => import('./Card').then(a => a.default); >lazyCard : Symbol(lazyCard, Decl(index.ts, 0, 10)) >import('./Card').then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) ->'./Card' : Symbol("Card", Decl(Card.ts, 0, 0)) +>'./Card' : Symbol("./Card", Decl(Card.ts, 0, 0)) >then : Symbol(Promise.then, Decl(lib.es5.d.ts, --, --)) >a : Symbol(a, Decl(index.ts, 0, 50)) >a.default : Symbol(default, Decl(Card.ts, 0, 37)) diff --git a/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.types b/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.types index c61879e9f1711..a531fa31adf4e 100644 --- a/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.types +++ b/tests/baselines/reference/declarationEmitExportAliasVisibiilityMarking.types @@ -40,30 +40,30 @@ export default (suit: Suit, rank: Rank) => ({suit, rank}); === index.ts === export let lazyCard = () => import('./Card').then(a => a.default); ->lazyCard : () => Promise<(suit: import("Types").Suit, rank: import("Types").Rank) => { suit: import("Types").Suit; rank: import("Types").Rank; }> -> : ^^^^^^^^^^^^^^^ ^^ ^^^^^^^ ^^^^^^ ^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->() => import('./Card').then(a => a.default) : () => Promise<(suit: import("Types").Suit, rank: import("Types").Rank) => { suit: import("Types").Suit; rank: import("Types").Rank; }> -> : ^^^^^^^^^^^^^^^ ^^ ^^^^^^^ ^^^^^^ ^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->import('./Card').then(a => a.default) : Promise<(suit: import("Types").Suit, rank: import("Types").Rank) => { suit: import("Types").Suit; rank: import("Types").Rank; }> -> : ^^^^^^^^^ ^^ ^^^^^^^ ^^^^^^ ^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->import('./Card').then : (onfulfilled?: (value: typeof import("Card")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise -> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->import('./Card') : Promise -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>lazyCard : () => Promise<(suit: import("./Types").Suit, rank: import("./Types").Rank) => { suit: import("./Types").Suit; rank: import("./Types").Rank; }> +> : ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>() => import('./Card').then(a => a.default) : () => Promise<(suit: import("./Types").Suit, rank: import("./Types").Rank) => { suit: import("./Types").Suit; rank: import("./Types").Rank; }> +> : ^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import('./Card').then(a => a.default) : Promise<(suit: import("./Types").Suit, rank: import("./Types").Rank) => { suit: import("./Types").Suit; rank: import("./Types").Rank; }> +> : ^^^^^^^^^ ^^ ^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import('./Card').then : (onfulfilled?: (value: typeof import("./Card")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>import('./Card') : Promise +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >'./Card' : "./Card" > : ^^^^^^^^ ->then : (onfulfilled?: (value: typeof import("Card")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise -> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->a => a.default : (a: typeof import("Card")) => (suit: import("Types").Suit, rank: import("Types").Rank) => { suit: import("Types").Suit; rank: import("Types").Rank; } -> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^ ^^^^^^ ^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->a : typeof import("Card") -> : ^^^^^^^^^^^^^^^^^^^^^ ->a.default : (suit: import("Types").Suit, rank: import("Types").Rank) => { suit: import("Types").Suit; rank: import("Types").Rank; } -> : ^ ^^ ^^^^^^^ ^^^^^^ ^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->a : typeof import("Card") -> : ^^^^^^^^^^^^^^^^^^^^^ ->default : (suit: import("Types").Suit, rank: import("Types").Rank) => { suit: import("Types").Suit; rank: import("Types").Rank; } -> : ^ ^^ ^^^^^^^ ^^^^^^ ^^ ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>then : (onfulfilled?: (value: typeof import("./Card")) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a => a.default : (a: typeof import("./Card")) => (suit: import("./Types").Suit, rank: import("./Types").Rank) => { suit: import("./Types").Suit; rank: import("./Types").Rank; } +> : ^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : typeof import("./Card") +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>a.default : (suit: import("./Types").Suit, rank: import("./Types").Rank) => { suit: import("./Types").Suit; rank: import("./Types").Rank; } +> : ^ ^^ ^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : typeof import("./Card") +> : ^^^^^^^^^^^^^^^^^^^^^^^ +>default : (suit: import("./Types").Suit, rank: import("./Types").Rank) => { suit: import("./Types").Suit; rank: import("./Types").Rank; } +> : ^ ^^ ^^^^^^^^^ ^^^^^^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export { Suit, Rank } from './Types'; >Suit : any diff --git a/tests/baselines/reference/declarationEmitExportAssignedNamespaceNoTripleSlashTypesReference.types b/tests/baselines/reference/declarationEmitExportAssignedNamespaceNoTripleSlashTypesReference.types index 8ad4cf190fe66..3d277e65b9de2 100644 --- a/tests/baselines/reference/declarationEmitExportAssignedNamespaceNoTripleSlashTypesReference.types +++ b/tests/baselines/reference/declarationEmitExportAssignedNamespaceNoTripleSlashTypesReference.types @@ -54,24 +54,24 @@ export function getComp(): Component { } === src/inferred-comp-export.ts === import { getComp } from "./get-comp"; ->getComp : () => import("node_modules/@types/react/index").Component -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ +>getComp : () => import("react").Component +> : ^^^^^^ ^^^^^^^ ^^^^^^^^^ // this shouldn't need any triple-slash references - it should have a direct import to `react` and that's it // This issue (#35343) _only_ reproduces in the test harness when the file in question is in a subfolder export const obj = { ->obj : { comp: import("node_modules/@types/react/index").Component; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->{ comp: getComp()} : { comp: import("node_modules/@types/react/index").Component; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>obj : { comp: import("react").Component; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ comp: getComp()} : { comp: import("react").Component; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ comp: getComp() ->comp : import("node_modules/@types/react/index").Component -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->getComp() : import("node_modules/@types/react/index").Component -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->getComp : () => import("node_modules/@types/react/index").Component -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^ +>comp : import("react").Component +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>getComp() : import("react").Component +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>getComp : () => import("react").Component +> : ^^^^^^ ^^^^^^^ ^^^^^^^^^ } === src/some-other-file.ts === diff --git a/tests/baselines/reference/declarationEmitForGlobalishSpecifierSymlink.types b/tests/baselines/reference/declarationEmitForGlobalishSpecifierSymlink.types index 8a0be1b7d427f..d1f4475dcc662 100644 --- a/tests/baselines/reference/declarationEmitForGlobalishSpecifierSymlink.types +++ b/tests/baselines/reference/declarationEmitForGlobalishSpecifierSymlink.types @@ -38,20 +38,20 @@ import * as _whatever from "p2"; > : ^^^^^^^^^^^^^^^^ import { getA } from "typescript-fsa"; ->getA : () => import("/p1/node_modules/typescript-fsa/index").A -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ +>getA : () => import("typescript-fsa").A +> : ^^^^^^ ^^^^^^^^^^^^^^^^ ^ export const a = getA(); ->a : import("/p1/node_modules/typescript-fsa/index").A -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->getA() : import("/p1/node_modules/typescript-fsa/index").A -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->getA : () => import("/p1/node_modules/typescript-fsa/index").A -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ +>a : import("typescript-fsa").A +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>getA() : import("typescript-fsa").A +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>getA : () => import("typescript-fsa").A +> : ^^^^^^ ^^^^^^^^^^^^^^^^ ^ === /p2/index.d.ts === export const a: import("typescript-fsa").A; ->a : import("/p2/node_modules/typescript-fsa/index").A -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : import("typescript-fsa").A +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitForGlobalishSpecifierSymlink2.types b/tests/baselines/reference/declarationEmitForGlobalishSpecifierSymlink2.types index 787f5aad301af..09b7a2baa7ab0 100644 --- a/tests/baselines/reference/declarationEmitForGlobalishSpecifierSymlink2.types +++ b/tests/baselines/reference/declarationEmitForGlobalishSpecifierSymlink2.types @@ -22,20 +22,20 @@ import * as _whatever from "p2"; > : ^^^^^^^^^^^^^^^^ import { getA } from "typescript-fsa"; ->getA : () => import("/cache/typescript-fsa/index").A -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ +>getA : () => import("typescript-fsa").A +> : ^^^^^^ ^^^^^^^^^^^^^^^^ ^ export const a = getA(); ->a : import("/cache/typescript-fsa/index").A -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->getA() : import("/cache/typescript-fsa/index").A -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->getA : () => import("/cache/typescript-fsa/index").A -> : ^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^ +>a : import("typescript-fsa").A +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>getA() : import("typescript-fsa").A +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ +>getA : () => import("typescript-fsa").A +> : ^^^^^^ ^^^^^^^^^^^^^^^^ ^ === /p2/index.d.ts === export const a: import("typescript-fsa").A; ->a : import("/cache/typescript-fsa/index").A -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>a : import("typescript-fsa").A +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.symbols b/tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.symbols index 94b02bdd892c9..a36ff6eb3d30c 100644 --- a/tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.symbols +++ b/tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.symbols @@ -5,7 +5,7 @@ import { ParentThing } from './parent'; >ParentThing : Symbol(ParentThing, Decl(child1.ts, 0, 8)) declare module './parent' { ->'./parent' : Symbol("parent", Decl(parent.ts, 0, 0), Decl(child1.ts, 0, 39)) +>'./parent' : Symbol("./parent", Decl(parent.ts, 0, 0), Decl(child1.ts, 0, 39)) interface ParentThing { >ParentThing : Symbol(ParentThing, Decl(parent.ts, 0, 34), Decl(child1.ts, 2, 27)) diff --git a/tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.types b/tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.types index 5e6804230c2e7..67b00420ee05f 100644 --- a/tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.types +++ b/tests/baselines/reference/declarationEmitForModuleImportingModuleAugmentationRetainsImport.types @@ -6,8 +6,8 @@ import { ParentThing } from './parent'; > : ^^^^^^^^^^^^^^^^^^ declare module './parent' { ->'./parent' : typeof import("parent") -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>'./parent' : typeof import("./parent") +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ interface ParentThing { add: (a: number, b: number) => number; diff --git a/tests/baselines/reference/declarationEmitForTypesWhichNeedImportTypes.types b/tests/baselines/reference/declarationEmitForTypesWhichNeedImportTypes.types index 38f004b4fd947..3929292836896 100644 --- a/tests/baselines/reference/declarationEmitForTypesWhichNeedImportTypes.types +++ b/tests/baselines/reference/declarationEmitForTypesWhichNeedImportTypes.types @@ -13,14 +13,14 @@ export function createNamed(): Named { } === a.ts === import { createNamed } from "./b"; ->createNamed : () => import("b").Named -> : ^^^^^^ ^^^ ^^^^^ +>createNamed : () => import("./b").Named +> : ^^^^^^ ^^^^^ ^^^^^ export const Value = createNamed(); ->Value : import("b").Named -> : ^^^^^^^^^^^^^^^^^ ->createNamed() : import("b").Named -> : ^^^^^^^^^^^^^^^^^ ->createNamed : () => import("b").Named -> : ^^^^^^ ^^^ ^^^^^ +>Value : import("./b").Named +> : ^^^^^^^^^^^^^^^^^^^ +>createNamed() : import("./b").Named +> : ^^^^^^^^^^^^^^^^^^^ +>createNamed : () => import("./b").Named +> : ^^^^^^ ^^^^^ ^^^^^ diff --git a/tests/baselines/reference/declarationEmitInlinedDistributiveConditional.types b/tests/baselines/reference/declarationEmitInlinedDistributiveConditional.types index 4a3c2c6faa304..7adb0e0467b96 100644 --- a/tests/baselines/reference/declarationEmitInlinedDistributiveConditional.types +++ b/tests/baselines/reference/declarationEmitInlinedDistributiveConditional.types @@ -2,8 +2,8 @@ === test.ts === import {dropPrivateProps1, dropPrivateProps2} from './api'; ->dropPrivateProps1 : (obj: Obj) => { [K in import("internal").PublicKeys1]: Obj[K]; } -> : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dropPrivateProps1 : (obj: Obj) => { [K in import("./internal").PublicKeys1]: Obj[K]; } +> : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >dropPrivateProps2 : (obj: Obj) => { [K in keyof Obj extends infer T ? T extends keyof Obj ? T extends `_${string}` ? never : T : never : never]: Obj[K]; } > : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -12,8 +12,8 @@ const a = dropPrivateProps1({foo: 42, _bar: 'secret'}); // type is {foo: number} > : ^^^^^^^^^^^^^^^^ >dropPrivateProps1({foo: 42, _bar: 'secret'}) : { foo: number; } > : ^^^^^^^^^^^^^^^^ ->dropPrivateProps1 : (obj: Obj) => { [K in import("internal").PublicKeys1]: Obj[K]; } -> : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dropPrivateProps1 : (obj: Obj) => { [K in import("./internal").PublicKeys1]: Obj[K]; } +> : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >{foo: 42, _bar: 'secret'} : { foo: number; _bar: string; } > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >foo : number @@ -48,22 +48,22 @@ const b = dropPrivateProps2({foo: 42, _bar: 'secret'}); // type is {foo: number, === api.ts === import {excludePrivateKeys1, excludePrivateKeys2} from './internal'; ->excludePrivateKeys1 : (obj: Obj) => { [K in import("internal").PublicKeys1]: Obj[K]; } -> : ^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ +>excludePrivateKeys1 : (obj: Obj) => { [K in import("./internal").PublicKeys1]: Obj[K]; } +> : ^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ >excludePrivateKeys2 : (obj: Obj) => { [K in keyof Obj extends infer T ? T extends keyof Obj ? T extends `_${string}` ? never : T : never : never]: Obj[K]; } > : ^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export const dropPrivateProps1 = (obj: Obj) => excludePrivateKeys1(obj); ->dropPrivateProps1 : (obj: Obj) => { [K in import("internal").PublicKeys1]: Obj[K]; } -> : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->(obj: Obj) => excludePrivateKeys1(obj) : (obj: Obj) => { [K in import("internal").PublicKeys1]: Obj[K]; } -> : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>dropPrivateProps1 : (obj: Obj) => { [K in import("./internal").PublicKeys1]: Obj[K]; } +> : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>(obj: Obj) => excludePrivateKeys1(obj) : (obj: Obj) => { [K in import("./internal").PublicKeys1]: Obj[K]; } +> : ^ ^^ ^^ ^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >obj : Obj > : ^^^ ->excludePrivateKeys1(obj) : { [K in import("internal").PublicKeys1]: Obj[K]; } -> : ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->excludePrivateKeys1 : (obj: Obj_1) => { [K in import("internal").PublicKeys1]: Obj_1[K]; } -> : ^^^^^^^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^^^ +>excludePrivateKeys1(obj) : { [K in import("./internal").PublicKeys1]: Obj[K]; } +> : ^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>excludePrivateKeys1 : (obj: Obj_1) => { [K in import("./internal").PublicKeys1]: Obj_1[K]; } +> : ^^^^^^^^ ^^ ^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ >obj : Obj > : ^^^ diff --git a/tests/baselines/reference/declarationEmitIsolatedDeclarationErrorNotEmittedForNonEmittedFile.types b/tests/baselines/reference/declarationEmitIsolatedDeclarationErrorNotEmittedForNonEmittedFile.types index f393229ca444b..e1fdb80836384 100644 --- a/tests/baselines/reference/declarationEmitIsolatedDeclarationErrorNotEmittedForNonEmittedFile.types +++ b/tests/baselines/reference/declarationEmitIsolatedDeclarationErrorNotEmittedForNonEmittedFile.types @@ -71,8 +71,8 @@ declare class TRPCBuilder { middleware: >(fn: import("./middleware").MiddlewareFunction<{ >middleware : >(fn: import("./middleware").MiddlewareFunction<{ _config: RootConfig<{ errorShape: ErrorFormatterShape>>; }>; }, TNewParams>) => import("./middleware").MiddlewareBuilder<{ _config: RootConfig<{ errorShape: ErrorFormatterShape>>; }>; }, TNewParams> > : ^ ^^^^^^^^^ ^^ ^^ ^^^^^ ->fn : import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: RootConfig<{ errorShape: ErrorFormatterShape>>; }>; }, TNewParams> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ +>fn : import("./middleware").MiddlewareFunction<{ _config: RootConfig<{ errorShape: ErrorFormatterShape>>; }>; }, TNewParams> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ _config: RootConfig<{ >_config : RootConfig<{ errorShape: ErrorFormatterShape>>; }> @@ -112,34 +112,34 @@ import { initTRPC } from "@trpc/server"; > : ^^^^^^^^^^^^^^^^^^^ const trpc = initTRPC.create(); ->trpc : { procedure: {}; middleware: >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } -> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ->initTRPC.create() : { procedure: {}; middleware: >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } -> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ->initTRPC.create : >() => { procedure: {}; middleware: >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape>>>; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape>>>; }>; }, TNewParams>; router: {}; } -> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>trpc : { procedure: {}; middleware: >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } +> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>initTRPC.create() : { procedure: {}; middleware: >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } +> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>initTRPC.create : >() => { procedure: {}; middleware: >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape>>>; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape>>>; }>; }, TNewParams>; router: {}; } +> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ >initTRPC : TRPCBuilder > : ^^^^^^^^^^^^^^^^^^^ ->create : >() => { procedure: {}; middleware: >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape>>>; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape>>>; }>; }, TNewParams>; router: {}; } -> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>create : >() => { procedure: {}; middleware: >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape>>>; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape>>>; }>; }, TNewParams>; router: {}; } +> : ^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ export const middleware = trpc.middleware; ->middleware : >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams> -> : ^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->trpc.middleware : >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams> -> : ^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->trpc : { procedure: {}; middleware: >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } -> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ ->middleware : >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams> -> : ^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>middleware : >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams> +> : ^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>trpc.middleware : >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams> +> : ^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>trpc : { procedure: {}; middleware: >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } +> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>middleware : >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams> +> : ^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export const router = trpc.router; >router : {} > : ^^ >trpc.router : {} > : ^^ ->trpc : { procedure: {}; middleware: >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } -> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>trpc : { procedure: {}; middleware: >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } +> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ >router : {} > : ^^ @@ -148,8 +148,8 @@ export const publicProcedure = trpc.procedure; > : ^^ >trpc.procedure : {} > : ^^ ->trpc : { procedure: {}; middleware: >(fn: import("node_modules/@trpc/server/middleware").MiddlewareFunction<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("node_modules/@trpc/server/middleware").MiddlewareBuilder<{ _config: import("node_modules/@trpc/server/internals/config").RootConfig<{ errorShape: import("node_modules/@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } -> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ +>trpc : { procedure: {}; middleware: >(fn: import("@trpc/server/middleware").MiddlewareFunction<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>) => import("@trpc/server/middleware").MiddlewareBuilder<{ _config: import("@trpc/server/internals/config").RootConfig<{ errorShape: import("@trpc/server/internals/utils").ErrorFormatterShape; }>; }, TNewParams>; router: {}; } +> : ^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^ >procedure : {} > : ^^ diff --git a/tests/baselines/reference/declarationEmitMappedTypeTemplateTypeofSymbol.types b/tests/baselines/reference/declarationEmitMappedTypeTemplateTypeofSymbol.types index 5fdda7852aa2c..fef6536881d81 100644 --- a/tests/baselines/reference/declarationEmitMappedTypeTemplateTypeofSymbol.types +++ b/tests/baselines/reference/declarationEmitMappedTypeTemplateTypeofSymbol.types @@ -42,14 +42,14 @@ export const timestamp = x.now(); === c.ts === import { now } from "./a"; ->now : () => typeof import("a").Timestamp -> : ^^^^^^ ^^^ ^^^^^^^^^ +>now : () => typeof import("./a").Timestamp +> : ^^^^^^ ^^^^^ ^^^^^^^^^ export const timestamp = now(); >timestamp : { [timestampSymbol]: true; } > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >now() : { [timestampSymbol]: true; } > : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->now : () => typeof import("a").Timestamp -> : ^^^^^^ ^^^ ^^^^^^^^^ +>now : () => typeof import("./a").Timestamp +> : ^^^^^^ ^^^^^ ^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitNoInvalidCommentReuse1.types b/tests/baselines/reference/declarationEmitNoInvalidCommentReuse1.types index baf3e35b7bdac..0df5a18f81db0 100644 --- a/tests/baselines/reference/declarationEmitNoInvalidCommentReuse1.types +++ b/tests/baselines/reference/declarationEmitNoInvalidCommentReuse1.types @@ -2,14 +2,14 @@ === a.ts === import { object } from "./obj"; ->object : { foo: import("id").Id<{}>; } -> : ^^^^^^^ ^^^ +>object : { foo: import("./id").Id<{}>; } +> : ^^^^^^^ ^^^ export const _ = object; ->_ : { foo: import("id").Id<{}>; } -> : ^^^^^^^ ^^^ ->object : { foo: import("id").Id<{}>; } -> : ^^^^^^^ ^^^ +>_ : { foo: import("./id").Id<{}>; } +> : ^^^^^^^ ^^^ +>object : { foo: import("./id").Id<{}>; } +> : ^^^^^^^ ^^^ /////////// /** diff --git a/tests/baselines/reference/declarationEmitNoInvalidCommentReuse2.types b/tests/baselines/reference/declarationEmitNoInvalidCommentReuse2.types index fcda0f29e487a..3a32a2a9b84ad 100644 --- a/tests/baselines/reference/declarationEmitNoInvalidCommentReuse2.types +++ b/tests/baselines/reference/declarationEmitNoInvalidCommentReuse2.types @@ -2,14 +2,14 @@ === a.ts === import { object } from "./obj.ts"; ->object : { foo: import("id").Id<{}>; } -> : ^^^^^^^ ^^^ +>object : { foo: import("./id").Id<{}>; } +> : ^^^^^^^ ^^^ export const _ = object; ->_ : { foo: import("id").Id<{}>; } -> : ^^^^^^^ ^^^ ->object : { foo: import("id").Id<{}>; } -> : ^^^^^^^ ^^^ +>_ : { foo: import("./id").Id<{}>; } +> : ^^^^^^^ ^^^ +>object : { foo: import("./id").Id<{}>; } +> : ^^^^^^^ ^^^ /////////// /** diff --git a/tests/baselines/reference/declarationEmitObjectAssignedDefaultExport.types b/tests/baselines/reference/declarationEmitObjectAssignedDefaultExport.types index 8322418902508..5a3cc01b9a127 100644 --- a/tests/baselines/reference/declarationEmitObjectAssignedDefaultExport.types +++ b/tests/baselines/reference/declarationEmitObjectAssignedDefaultExport.types @@ -66,72 +66,72 @@ export default styled; === index.ts === import styled from "styled-components"; ->styled : import("node_modules/styled-components/index").StyledInterface -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled : import("styled-components").StyledInterface +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ const A = styled.div``; ->A : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->styled.div`` : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->styled.div : (a: TemplateStringsArray) => import("node_modules/styled-components/index").StyledComponent<"div"> -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ->styled : import("node_modules/styled-components/index").StyledInterface -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->div : (a: TemplateStringsArray) => import("node_modules/styled-components/index").StyledComponent<"div"> -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>A : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled.div`` : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled.div : (a: TemplateStringsArray) => import("styled-components").StyledComponent<"div"> +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>styled : import("styled-components").StyledInterface +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>div : (a: TemplateStringsArray) => import("styled-components").StyledComponent<"div"> +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ >`` : "" > : ^^ const B = styled.div``; ->B : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->styled.div`` : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->styled.div : (a: TemplateStringsArray) => import("node_modules/styled-components/index").StyledComponent<"div"> -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ->styled : import("node_modules/styled-components/index").StyledInterface -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->div : (a: TemplateStringsArray) => import("node_modules/styled-components/index").StyledComponent<"div"> -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>B : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled.div`` : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled.div : (a: TemplateStringsArray) => import("styled-components").StyledComponent<"div"> +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>styled : import("styled-components").StyledInterface +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>div : (a: TemplateStringsArray) => import("styled-components").StyledComponent<"div"> +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ >`` : "" > : ^^ export const C = styled.div``; ->C : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->styled.div`` : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->styled.div : (a: TemplateStringsArray) => import("node_modules/styled-components/index").StyledComponent<"div"> -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ->styled : import("node_modules/styled-components/index").StyledInterface -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->div : (a: TemplateStringsArray) => import("node_modules/styled-components/index").StyledComponent<"div"> -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>C : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled.div`` : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>styled.div : (a: TemplateStringsArray) => import("styled-components").StyledComponent<"div"> +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ +>styled : import("styled-components").StyledInterface +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>div : (a: TemplateStringsArray) => import("styled-components").StyledComponent<"div"> +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ >`` : "" > : ^^ export default Object.assign(A, { ->Object.assign(A, { B, C}) : string & import("node_modules/styled-components/index").StyledComponentBase<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> & import("node_modules/styled-components/node_modules/hoist-non-react-statics/index").NonReactStatics<"div"> & { B: import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never>; C: import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never>; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>Object.assign(A, { B, C}) : string & import("styled-components").StyledComponentBase<"div", import("styled-components").DefaultTheme, {}, never> & import("styled-components/node_modules/hoist-non-react-statics").NonReactStatics<"div"> & { B: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>; C: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >Object.assign : { (target: T, source: U): T & U; (target: T, source1: U, source2: V): T & U & V; (target: T, source1: U, source2: V, source3: W): T & U & V & W; (target: object, ...sources: any[]): any; } > : ^^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^ ^^^^^ ^^ ^^^ ^^^ >Object : ObjectConstructor > : ^^^^^^^^^^^^^^^^^ >assign : { (target: T, source: U): T & U; (target: T, source1: U, source2: V): T & U & V; (target: T, source1: U, source2: V, source3: W): T & U & V & W; (target: object, ...sources: any[]): any; } > : ^^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^^^^^^^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^ ^^^ ^^^ ^^ ^^^^^ ^^ ^^^ ^^^ ->A : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->{ B, C} : { B: import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never>; C: import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never>; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>A : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ B, C} : { B: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>; C: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ B, ->B : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>B : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ C ->C : import("node_modules/styled-components/index").StyledComponent<"div", import("node_modules/styled-components/index").DefaultTheme, {}, never> -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>C : import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never> +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ }); diff --git a/tests/baselines/reference/declarationEmitPartialNodeReuseTypeOf.types b/tests/baselines/reference/declarationEmitPartialNodeReuseTypeOf.types index 617ce0db18401..bb7b9a67b2432 100644 --- a/tests/baselines/reference/declarationEmitPartialNodeReuseTypeOf.types +++ b/tests/baselines/reference/declarationEmitPartialNodeReuseTypeOf.types @@ -55,16 +55,16 @@ export const o = (p1: typeof nImported, p2: typeof nNotImported, p3: typeof nPri === b.ts === import { o, nImported } from "./a"; ->o : (p1: typeof nImported, p2: typeof import("a").nNotImported, p3: "private") => { foo: typeof nImported; bar: "private"; baz: typeof import("a").nNotImported; } -> : ^ ^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^ +>o : (p1: typeof nImported, p2: typeof import("./a").nNotImported, p3: "private") => { foo: typeof nImported; bar: "private"; baz: typeof import("./a").nNotImported; } +> : ^ ^^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^ >nImported : "nImported" > : ^^^^^^^^^^^ export const g = o ->g : (p1: typeof nImported, p2: typeof import("a").nNotImported, p3: "private") => { foo: typeof nImported; bar: "private"; baz: typeof import("a").nNotImported; } -> : ^ ^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^ ->o : (p1: typeof nImported, p2: typeof import("a").nNotImported, p3: "private") => { foo: typeof nImported; bar: "private"; baz: typeof import("a").nNotImported; } -> : ^ ^^ ^^ ^^ ^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^ ^^^^^^^^^^^^ +>g : (p1: typeof nImported, p2: typeof import("./a").nNotImported, p3: "private") => { foo: typeof nImported; bar: "private"; baz: typeof import("./a").nNotImported; } +> : ^ ^^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^ +>o : (p1: typeof nImported, p2: typeof import("./a").nNotImported, p3: "private") => { foo: typeof nImported; bar: "private"; baz: typeof import("./a").nNotImported; } +> : ^ ^^ ^^ ^^ ^^^^^ ^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^ ^^^^^^^^^ ^^^^^ ^^^^^^^^^^^^ console.log(nImported); >console.log(nImported) : void diff --git a/tests/baselines/reference/declarationEmitPartialNodeReuseTypeReferences.types b/tests/baselines/reference/declarationEmitPartialNodeReuseTypeReferences.types index 77b16f1d25d71..f25b79fef395e 100644 --- a/tests/baselines/reference/declarationEmitPartialNodeReuseTypeReferences.types +++ b/tests/baselines/reference/declarationEmitPartialNodeReuseTypeReferences.types @@ -57,14 +57,14 @@ export const g = a.o === c.ts === import { o, SpecialString } from "./a"; ->o : (p1: SpecialString, p2: string, p3: import("a").N.SpecialString) => { foo: SpecialString; bar: string; baz: import("a").N.SpecialString; } -> : ^ ^^ ^^ ^^^^^^^^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^ ^^^^^^^^^^^^^^^ +>o : (p1: SpecialString, p2: string, p3: import("./a").N.SpecialString) => { foo: SpecialString; bar: string; baz: import("./a").N.SpecialString; } +> : ^ ^^ ^^ ^^^^^^^^^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ >SpecialString : any > : ^^^ export const g = o ->g : (p1: SpecialString, p2: string, p3: import("a").N.SpecialString) => { foo: SpecialString; bar: string; baz: import("a").N.SpecialString; } -> : ^ ^^ ^^ ^^^^^^^^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^ ^^^^^^^^^^^^^^^ ->o : (p1: SpecialString, p2: string, p3: import("a").N.SpecialString) => { foo: SpecialString; bar: string; baz: import("a").N.SpecialString; } -> : ^ ^^ ^^ ^^^^^^^^^^ ^^ ^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^ ^^^^^^^^^^^^^^^ +>g : (p1: SpecialString, p2: string, p3: import("./a").N.SpecialString) => { foo: SpecialString; bar: string; baz: import("./a").N.SpecialString; } +> : ^ ^^ ^^ ^^^^^^^^^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ +>o : (p1: SpecialString, p2: string, p3: import("./a").N.SpecialString) => { foo: SpecialString; bar: string; baz: import("./a").N.SpecialString; } +> : ^ ^^ ^^ ^^^^^^^^^^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^ ^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitPathMappingMonorepo2.types b/tests/baselines/reference/declarationEmitPathMappingMonorepo2.types index e9160c33634c4..4c006699de33c 100644 --- a/tests/baselines/reference/declarationEmitPathMappingMonorepo2.types +++ b/tests/baselines/reference/declarationEmitPathMappingMonorepo2.types @@ -2,14 +2,14 @@ === packages/lab/src/index.ts === import { createSvgIcon } from "@ts-bug/core/utils"; ->createSvgIcon : (path: string, displayName: string) => import("packages/core/src/SvgIcon").SomeInterface -> : ^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>createSvgIcon : (path: string, displayName: string) => import("@ts-bug/core/SvgIcon").SomeInterface +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export default createSvgIcon("Hello", "ArrowLeft"); ->createSvgIcon("Hello", "ArrowLeft") : import("packages/core/src/SvgIcon").SomeInterface -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->createSvgIcon : (path: string, displayName: string) => import("packages/core/src/SvgIcon").SomeInterface -> : ^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>createSvgIcon("Hello", "ArrowLeft") : import("@ts-bug/core/SvgIcon").SomeInterface +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>createSvgIcon : (path: string, displayName: string) => import("@ts-bug/core/SvgIcon").SomeInterface +> : ^ ^^ ^^ ^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >"Hello" : "Hello" > : ^^^^^^^ >"ArrowLeft" : "ArrowLeft" @@ -40,8 +40,8 @@ export default SvgIcon; === packages/core/src/utils.d.ts === import SvgIcon from "./SvgIcon"; ->SvgIcon : import("packages/core/src/SvgIcon").SomeInterface -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>SvgIcon : import("./SvgIcon").SomeInterface +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ export function createSvgIcon(path: string, displayName: string): typeof SvgIcon; >createSvgIcon : (path: string, displayName: string) => typeof SvgIcon @@ -50,8 +50,8 @@ export function createSvgIcon(path: string, displayName: string): typeof SvgIcon > : ^^^^^^ >displayName : string > : ^^^^^^ ->SvgIcon : import("packages/core/src/SvgIcon").SomeInterface -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>SvgIcon : import("./SvgIcon").SomeInterface +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ === packages/styles/src/index.d.ts === export interface StyledComponentProps { diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.types b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.types index 9a755bff3fbe1..a399033dd528c 100644 --- a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.types +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling.types @@ -20,22 +20,22 @@ export function scalar(value: string): Scalar { } === src/settings/spacing.ts === import { scalar } from '../lib/operators/scalar'; ->scalar : (value: string) => import("src/lib/operators/scalar").Scalar -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ +>scalar : (value: string) => import("../lib/operators/scalar").Scalar +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ export default { ->{ get xs() { return scalar("14px"); }} : { readonly xs: import("src/lib/operators/scalar").Scalar; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ get xs() { return scalar("14px"); }} : { readonly xs: import("../lib/operators/scalar").Scalar; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ get xs() { ->xs : import("src/lib/operators/scalar").Scalar -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>xs : import("../lib/operators/scalar").Scalar +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return scalar("14px"); ->scalar("14px") : import("src/lib/operators/scalar").Scalar -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->scalar : (value: string) => import("src/lib/operators/scalar").Scalar -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ +>scalar("14px") : import("../lib/operators/scalar").Scalar +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>scalar : (value: string) => import("../lib/operators/scalar").Scalar +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ >"14px" : "14px" > : ^^^^^^ } diff --git a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.types b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.types index 317bce8a19b24..6fec6ba4f13fd 100644 --- a/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.types +++ b/tests/baselines/reference/declarationEmitPrefersPathKindBasedOnBundling2.types @@ -20,22 +20,22 @@ export function scalar(value: string): Scalar { } === src/settings/spacing.ts === import { scalar } from '../lib/operators/scalar'; ->scalar : (value: string) => import("src/lib/operators/scalar").Scalar -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ +>scalar : (value: string) => import("lib/operators/scalar").Scalar +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ export default { ->{ get xs() { return scalar("14px"); }} : { readonly xs: import("src/lib/operators/scalar").Scalar; } -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>{ get xs() { return scalar("14px"); }} : { readonly xs: import("lib/operators/scalar").Scalar; } +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ get xs() { ->xs : import("src/lib/operators/scalar").Scalar -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>xs : import("lib/operators/scalar").Scalar +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ return scalar("14px"); ->scalar("14px") : import("src/lib/operators/scalar").Scalar -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->scalar : (value: string) => import("src/lib/operators/scalar").Scalar -> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ +>scalar("14px") : import("lib/operators/scalar").Scalar +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>scalar : (value: string) => import("lib/operators/scalar").Scalar +> : ^ ^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^ >"14px" : "14px" > : ^^^^^^ } diff --git a/tests/baselines/reference/declarationEmitQualifiedAliasTypeArgument.types b/tests/baselines/reference/declarationEmitQualifiedAliasTypeArgument.types index 9e6183bdccca3..17ee6d31d0ba8 100644 --- a/tests/baselines/reference/declarationEmitQualifiedAliasTypeArgument.types +++ b/tests/baselines/reference/declarationEmitQualifiedAliasTypeArgument.types @@ -51,22 +51,22 @@ import { T, Q } from "./lib"; > : ^^^ import { create } from "./bbb"; ->create : () => () => import("bbb").INode -> : ^ ^^^^^^^ ^^^^^ ^^^^^ +>create : () => () => import("./bbb").INode +> : ^ ^^^^^^^ ^^^^^^^ ^^^^^ export const fun = create(); ->fun : () => import("bbb").INode -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->create() : () => import("bbb").INode -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->create : () => () => import("bbb").INode -> : ^ ^^^^^^^ ^^^^^ ^^^^^ +>fun : () => import("./bbb").INode +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>create() : () => import("./bbb").INode +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>create : () => () => import("./bbb").INode +> : ^ ^^^^^^^ ^^^^^^^ ^^^^^ export const fun2 = create(); ->fun2 : () => import("bbb").INode -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->create() : () => import("bbb").INode -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->create : () => () => import("bbb").INode -> : ^ ^^^^^^^ ^^^^^ ^^^^^ +>fun2 : () => import("./bbb").INode +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>create() : () => import("./bbb").INode +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>create : () => () => import("./bbb").INode +> : ^ ^^^^^^^ ^^^^^^^ ^^^^^ diff --git a/tests/baselines/reference/declarationEmitReadonlyComputedProperty.types b/tests/baselines/reference/declarationEmitReadonlyComputedProperty.types index 8522029af67f5..5e18e7ce6834c 100644 --- a/tests/baselines/reference/declarationEmitReadonlyComputedProperty.types +++ b/tests/baselines/reference/declarationEmitReadonlyComputedProperty.types @@ -37,8 +37,8 @@ export function createInstance(): Interface { === index.ts === import { createInstance } from './bug' ->createInstance : () => import("bug").Interface -> : ^^^^^^ ^^^^^ ^^^^^^^^^ +>createInstance : () => import("./bug").Interface +> : ^^^^^^ ^^^^^^^ ^^^^^^^^^ export const spread = { >spread : { [SYMBOL]: string; } @@ -47,8 +47,8 @@ export const spread = { > : ^^^^^^^^^^^^ ^^^ ...createInstance(), ->createInstance() : import("bug").Interface -> : ^^^^^^^^^^^^^^^^^^^^^^^ ->createInstance : () => import("bug").Interface -> : ^^^^^^ ^^^^^ ^^^^^^^^^ +>createInstance() : import("./bug").Interface +> : ^^^^^^^^^^^^^^^^^^^^^^^^^ +>createInstance : () => import("./bug").Interface +> : ^^^^^^ ^^^^^^^ ^^^^^^^^^ } diff --git a/tests/baselines/reference/declarationEmitReexportedSymlinkReference.types b/tests/baselines/reference/declarationEmitReexportedSymlinkReference.types index 84491c53a5cd4..c3b5fb605c53e 100644 --- a/tests/baselines/reference/declarationEmitReexportedSymlinkReference.types +++ b/tests/baselines/reference/declarationEmitReexportedSymlinkReference.types @@ -9,16 +9,16 @@ import {MetadataAccessor} from "@raymondfeng/pkg2"; > : ^^^^^^^^^^^^^^^^^^^^^^^ export const ADMIN = MetadataAccessor.create('1'); ->ADMIN : MetadataAccessor -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->MetadataAccessor.create('1') : MetadataAccessor -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->MetadataAccessor.create : (key: string) => MetadataAccessor -> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ +>ADMIN : MetadataAccessor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MetadataAccessor.create('1') : MetadataAccessor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MetadataAccessor.create : (key: string) => MetadataAccessor +> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ >MetadataAccessor : typeof MetadataAccessor > : ^^^^^^^^^^^^^^^^^^^^^^^ ->create : (key: string) => MetadataAccessor -> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ +>create : (key: string) => MetadataAccessor +> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ >'1' : "1" > : ^^^ diff --git a/tests/baselines/reference/declarationEmitReexportedSymlinkReference2.types b/tests/baselines/reference/declarationEmitReexportedSymlinkReference2.types index 9255b91a4871a..a40bbc3da8199 100644 --- a/tests/baselines/reference/declarationEmitReexportedSymlinkReference2.types +++ b/tests/baselines/reference/declarationEmitReexportedSymlinkReference2.types @@ -9,16 +9,16 @@ import {MetadataAccessor} from "@raymondfeng/pkg2"; > : ^^^^^^^^^^^^^^^^^^^^^^^ export const ADMIN = MetadataAccessor.create('1'); ->ADMIN : MetadataAccessor -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->MetadataAccessor.create('1') : MetadataAccessor -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->MetadataAccessor.create : (key: string) => MetadataAccessor -> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ +>ADMIN : MetadataAccessor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MetadataAccessor.create('1') : MetadataAccessor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MetadataAccessor.create : (key: string) => MetadataAccessor +> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ >MetadataAccessor : typeof MetadataAccessor > : ^^^^^^^^^^^^^^^^^^^^^^^ ->create : (key: string) => MetadataAccessor -> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ +>create : (key: string) => MetadataAccessor +> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ >'1' : "1" > : ^^^ @@ -73,8 +73,8 @@ import "./secondary"; export * from './types'; === monorepo/pkg2/dist/types.d.ts === export {MetadataAccessor} from '@raymondfeng/pkg1'; ->MetadataAccessor : typeof import("monorepo/pkg1/dist/types").MetadataAccessor -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MetadataAccessor : typeof import("@raymondfeng/pkg1").MetadataAccessor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ === monorepo/pkg2/dist/secondary.d.ts === export {IdType} from '@raymondfeng/pkg1'; diff --git a/tests/baselines/reference/declarationEmitReexportedSymlinkReference3.types b/tests/baselines/reference/declarationEmitReexportedSymlinkReference3.types index 4c53f672d436f..15cef374b689a 100644 --- a/tests/baselines/reference/declarationEmitReexportedSymlinkReference3.types +++ b/tests/baselines/reference/declarationEmitReexportedSymlinkReference3.types @@ -9,16 +9,16 @@ import {MetadataAccessor} from "@raymondfeng/pkg2"; > : ^^^^^^^^^^^^^^^^^^^^^^^ export const ADMIN = MetadataAccessor.create('1'); ->ADMIN : MetadataAccessor -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->MetadataAccessor.create('1') : MetadataAccessor -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ->MetadataAccessor.create : (key: string) => MetadataAccessor -> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ +>ADMIN : MetadataAccessor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MetadataAccessor.create('1') : MetadataAccessor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MetadataAccessor.create : (key: string) => MetadataAccessor +> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ >MetadataAccessor : typeof MetadataAccessor > : ^^^^^^^^^^^^^^^^^^^^^^^ ->create : (key: string) => MetadataAccessor -> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ +>create : (key: string) => MetadataAccessor +> : ^ ^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^ ^^^^^ >'1' : "1" > : ^^^ @@ -72,6 +72,6 @@ export declare class MetadataAccessor { export * from './types'; === monorepo/pkg2/dist/types.d.ts === export {MetadataAccessor} from '@raymondfeng/pkg1'; ->MetadataAccessor : typeof import("monorepo/pkg1/dist/types").MetadataAccessor -> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +>MetadataAccessor : typeof import("@raymondfeng/pkg1").MetadataAccessor +> : ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/baselines/reference/declarationEmitReusesLambdaParameterNodes.types b/tests/baselines/reference/declarationEmitReusesLambdaParameterNodes.types index b8e9f43f83e2c..452bda2179bdc 100644 --- a/tests/baselines/reference/declarationEmitReusesLambdaParameterNodes.types +++ b/tests/baselines/reference/declarationEmitReusesLambdaParameterNodes.types @@ -23,12 +23,12 @@ export const CustomSelect1 = (x: Props