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
|
//// [tests/cases/compiler/declarationEmitTransitiveImportOfHtmlDeclarationItem.ts] ////
//// [foo.d.html.ts]
export declare class CustomHtmlRepresentationThing {}
//// [reexporter.ts]
import { CustomHtmlRepresentationThing } from "./foo.html";
export function func() {
return new CustomHtmlRepresentationThing();
}
//// [index.ts]
import { func } from "./reexporter";
export const c = func();
//// [reexporter.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.func = void 0;
var foo_html_1 = require("./foo.html");
function func() {
return new foo_html_1.CustomHtmlRepresentationThing();
}
exports.func = func;
//// [index.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.c = void 0;
var reexporter_1 = require("./reexporter");
exports.c = (0, reexporter_1.func)();
//// [reexporter.d.ts]
import { CustomHtmlRepresentationThing } from "./foo.html";
export declare function func(): CustomHtmlRepresentationThing;
//// [index.d.ts]
export declare const c: import("./foo.html").CustomHtmlRepresentationThing;
|