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 39 40
|
=== tests/cases/conformance/declarationEmit/fakelib.ts ===
// Test that passing noLib disables <reference lib> resolution.
interface Object { }
>Object : Symbol(Object, Decl(fakelib.ts, 0, 0))
interface Array<T> { }
>Array : Symbol(Array, Decl(fakelib.ts, 2, 20))
>T : Symbol(T, Decl(fakelib.ts, 3, 16))
interface String { }
>String : Symbol(String, Decl(fakelib.ts, 3, 22))
interface Boolean { }
>Boolean : Symbol(Boolean, Decl(fakelib.ts, 4, 20))
interface Number { }
>Number : Symbol(Number, Decl(fakelib.ts, 5, 21))
interface Function { }
>Function : Symbol(Function, Decl(fakelib.ts, 6, 20))
interface RegExp { }
>RegExp : Symbol(RegExp, Decl(fakelib.ts, 7, 22))
interface IArguments { }
>IArguments : Symbol(IArguments, Decl(fakelib.ts, 8, 20))
=== tests/cases/conformance/declarationEmit/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))
|