mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
//// [tests/cases/conformance/declarationEmit/libReferenceNoLib.ts] ////
|
|
|
|
=== fakelib.ts ===
|
|
interface Object { }
|
|
>Object : Symbol(Object, Decl(fakelib.ts, 0, 0))
|
|
|
|
interface Array<T> { }
|
|
>Array : Symbol(Array, Decl(fakelib.ts, 0, 20))
|
|
>T : Symbol(T, Decl(fakelib.ts, 1, 16))
|
|
|
|
interface String { }
|
|
>String : Symbol(String, Decl(fakelib.ts, 1, 22))
|
|
|
|
interface Boolean { }
|
|
>Boolean : Symbol(Boolean, Decl(fakelib.ts, 2, 20))
|
|
|
|
interface Number { }
|
|
>Number : Symbol(Number, Decl(fakelib.ts, 3, 21))
|
|
|
|
interface Function { }
|
|
>Function : Symbol(Function, Decl(fakelib.ts, 4, 20))
|
|
|
|
interface RegExp { }
|
|
>RegExp : Symbol(RegExp, Decl(fakelib.ts, 5, 22))
|
|
|
|
interface IArguments { }
|
|
>IArguments : Symbol(IArguments, Decl(fakelib.ts, 6, 20))
|
|
|
|
|
|
=== file1.ts ===
|
|
/// <reference lib="dom" />
|
|
export declare interface HTMLElement { field: string; }
|
|
>HTMLElement : Symbol(HTMLElement, Decl(file1.ts, 0, 0))
|
|
>field : Symbol(HTMLElement.field, Decl(file1.ts, 1, 38))
|
|
|
|
export const elem: HTMLElement = { field: 'a' };
|
|
>elem : Symbol(elem, Decl(file1.ts, 2, 12))
|
|
>HTMLElement : Symbol(HTMLElement, Decl(file1.ts, 0, 0))
|
|
>field : Symbol(field, Decl(file1.ts, 2, 34))
|
|
|