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
|
=== tests/cases/compiler/r/node_modules/foo/node_modules/nested/index.d.ts ===
export interface NestedProps {}
=== tests/cases/compiler/r/node_modules/foo/other/index.d.ts ===
export interface OtherIndexProps {}
=== tests/cases/compiler/r/node_modules/foo/other.d.ts ===
export interface OtherProps {}
=== tests/cases/compiler/r/node_modules/foo/index.d.ts ===
import { OtherProps } from "./other";
>OtherProps : any
import { OtherIndexProps } from "./other/index";
>OtherIndexProps : any
import { NestedProps } from "nested";
>NestedProps : any
export interface SomeProps {}
export function foo(): [SomeProps, OtherProps, OtherIndexProps, NestedProps];
>foo : () => [SomeProps, OtherProps, OtherIndexProps, NestedProps]
=== tests/cases/compiler/node_modules/root/index.d.ts ===
export interface RootProps {}
export function bar(): RootProps;
>bar : () => RootProps
=== tests/cases/compiler/r/entry.ts ===
import { foo } from "foo";
>foo : () => [import("tests/cases/compiler/r/node_modules/foo/index").SomeProps, import("tests/cases/compiler/r/node_modules/foo/other").OtherProps, import("tests/cases/compiler/r/node_modules/foo/other/index").OtherIndexProps, import("tests/cases/compiler/r/node_modules/foo/node_modules/nested/index").NestedProps]
import { bar } from "root";
>bar : () => import("tests/cases/compiler/node_modules/root/index").RootProps
export const x = foo();
>x : [import("tests/cases/compiler/r/node_modules/foo/index").SomeProps, import("tests/cases/compiler/r/node_modules/foo/other").OtherProps, import("tests/cases/compiler/r/node_modules/foo/other/index").OtherIndexProps, import("tests/cases/compiler/r/node_modules/foo/node_modules/nested/index").NestedProps]
>foo() : [import("tests/cases/compiler/r/node_modules/foo/index").SomeProps, import("tests/cases/compiler/r/node_modules/foo/other").OtherProps, import("tests/cases/compiler/r/node_modules/foo/other/index").OtherIndexProps, import("tests/cases/compiler/r/node_modules/foo/node_modules/nested/index").NestedProps]
>foo : () => [import("tests/cases/compiler/r/node_modules/foo/index").SomeProps, import("tests/cases/compiler/r/node_modules/foo/other").OtherProps, import("tests/cases/compiler/r/node_modules/foo/other/index").OtherIndexProps, import("tests/cases/compiler/r/node_modules/foo/node_modules/nested/index").NestedProps]
export const y = bar();
>y : import("tests/cases/compiler/node_modules/root/index").RootProps
>bar() : import("tests/cases/compiler/node_modules/root/index").RootProps
>bar : () => import("tests/cases/compiler/node_modules/root/index").RootProps
|