|
| 1 | +=== tests/cases/compiler/library.ts === |
| 2 | +function createElement(element: string, props: any, ...children: any[]): any {} |
| 3 | +>createElement : Symbol(createElement, Decl(library.ts, 0, 0)) |
| 4 | +>element : Symbol(element, Decl(library.ts, 0, 23)) |
| 5 | +>props : Symbol(props, Decl(library.ts, 0, 39)) |
| 6 | +>children : Symbol(children, Decl(library.ts, 0, 51)) |
| 7 | + |
| 8 | +namespace JSX { |
| 9 | +>JSX : Symbol(JSX, Decl(library.ts, 0, 79)) |
| 10 | + |
| 11 | + export interface IntrinsicElements { |
| 12 | +>IntrinsicElements : Symbol(IntrinsicElements, Decl(library.ts, 2, 15)) |
| 13 | + |
| 14 | + [key: string]: Record<string, any>; |
| 15 | +>key : Symbol(key, Decl(library.ts, 4, 5)) |
| 16 | +>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --)) |
| 17 | + } |
| 18 | +} |
| 19 | + |
| 20 | +export { createElement, JSX }; |
| 21 | +>createElement : Symbol(createElement, Decl(library.ts, 8, 8)) |
| 22 | +>JSX : Symbol(JSX, Decl(library.ts, 8, 23)) |
| 23 | + |
| 24 | +=== tests/cases/compiler/index.tsx === |
| 25 | +import * as MyLib from "./library"; |
| 26 | +>MyLib : Symbol(MyLib, Decl(index.tsx, 0, 6)) |
| 27 | + |
| 28 | +const content = <my-element/>; |
| 29 | +>content : Symbol(content, Decl(index.tsx, 2, 5)) |
| 30 | +>my-element : Symbol(MyLib.JSX.IntrinsicElements, Decl(library.ts, 2, 15)) |
| 31 | + |
0 commit comments