1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
=== /index.ts ===
export type LocalInterface =
>LocalInterface : any
& import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface
>1234, "resolution-mode" : "resolution-mode"
>1234 : 1234
>"resolution-mode" : "resolution-mode"
>"require" : "require"
>RequireInterface & import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface : number
>RequireInterface : any
& import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface;
>import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface : any
>import("pkg", { assert: {1234, "resolution-mode": "import"} }) : Promise<{ default: typeof import("/node_modules/pkg/import"); }>
>"pkg" : "pkg"
>{ assert: {1234, "resolution-mode": "import"} } : { assert: { 1234: any; "resolution-mode": string; }; }
>assert : { 1234: any; "resolution-mode": string; }
>{1234, "resolution-mode": "import"} : { 1234: any; "resolution-mode": string; }
>1234 : any
> : any
>"resolution-mode" : string
>"import" : "import"
>ImportInterface : any
export const a = (null as any as import("pkg", { assert: {1234, "resolution-mode": "require"} }).RequireInterface);
>a : any
>(null as any as import("pkg", { assert: { : any
>null as any as import("pkg", { assert: { : any
>null as any : any
>null : null
>1234, "resolution-mode" : "resolution-mode"
>1234 : 1234
>"resolution-mode" : "resolution-mode"
>"require" : "require"
>RequireInterface : any
export const b = (null as any as import("pkg", { assert: {1234, "resolution-mode": "import"} }).ImportInterface);
>b : any
>(null as any as import("pkg", { assert: { : any
>null as any as import("pkg", { assert: { : any
>null as any : any
>null : null
>1234, "resolution-mode" : "resolution-mode"
>1234 : 1234
>"resolution-mode" : "resolution-mode"
>"import" : "import"
>ImportInterface : any
=== /node_modules/pkg/import.d.ts ===
export interface ImportInterface {}
=== /node_modules/pkg/require.d.ts ===
export interface RequireInterface {}
|