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
|
=== tests/cases/compiler/foo.d.html.ts ===
export declare class CustomHtmlRepresentationThing {}
>CustomHtmlRepresentationThing : CustomHtmlRepresentationThing
=== tests/cases/compiler/reexporter.ts ===
import { CustomHtmlRepresentationThing } from "./foo.html";
>CustomHtmlRepresentationThing : typeof CustomHtmlRepresentationThing
export function func() {
>func : () => CustomHtmlRepresentationThing
return new CustomHtmlRepresentationThing();
>new CustomHtmlRepresentationThing() : CustomHtmlRepresentationThing
>CustomHtmlRepresentationThing : typeof CustomHtmlRepresentationThing
}
=== tests/cases/compiler/index.ts ===
import { func } from "./reexporter";
>func : () => import("tests/cases/compiler/foo.d.html").CustomHtmlRepresentationThing
export const c = func();
>c : import("tests/cases/compiler/foo.d.html").CustomHtmlRepresentationThing
>func() : import("tests/cases/compiler/foo.d.html").CustomHtmlRepresentationThing
>func : () => import("tests/cases/compiler/foo.d.html").CustomHtmlRepresentationThing
|