File: declarationEmitTransitiveImportOfHtmlDeclarationItem.types

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (25 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download
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