|
| 1 | +=== tests/cases/conformance/declarationEmit/fakelib.ts === |
| 2 | +// Test that passing noLib disables <reference lib> resolution. |
| 3 | + |
| 4 | +interface Object { } |
| 5 | +>Object : Symbol(Object, Decl(fakelib.ts, 0, 0)) |
| 6 | + |
| 7 | +interface Array<T> { } |
| 8 | +>Array : Symbol(Array, Decl(fakelib.ts, 2, 20)) |
| 9 | +>T : Symbol(T, Decl(fakelib.ts, 3, 16)) |
| 10 | + |
| 11 | +interface String { } |
| 12 | +>String : Symbol(String, Decl(fakelib.ts, 3, 22)) |
| 13 | + |
| 14 | +interface Boolean { } |
| 15 | +>Boolean : Symbol(Boolean, Decl(fakelib.ts, 4, 20)) |
| 16 | + |
| 17 | +interface Number { } |
| 18 | +>Number : Symbol(Number, Decl(fakelib.ts, 5, 21)) |
| 19 | + |
| 20 | +interface Function { } |
| 21 | +>Function : Symbol(Function, Decl(fakelib.ts, 6, 20)) |
| 22 | + |
| 23 | +interface RegExp { } |
| 24 | +>RegExp : Symbol(RegExp, Decl(fakelib.ts, 7, 22)) |
| 25 | + |
| 26 | +interface IArguments { } |
| 27 | +>IArguments : Symbol(IArguments, Decl(fakelib.ts, 8, 20)) |
| 28 | + |
| 29 | + |
| 30 | +=== tests/cases/conformance/declarationEmit/file1.ts === |
| 31 | +/// <reference lib="dom" /> |
| 32 | +export declare interface HTMLElement { field: string; } |
| 33 | +>HTMLElement : Symbol(HTMLElement, Decl(file1.ts, 0, 0)) |
| 34 | +>field : Symbol(HTMLElement.field, Decl(file1.ts, 1, 38)) |
| 35 | + |
| 36 | +export const elem: HTMLElement = { field: 'a' }; |
| 37 | +>elem : Symbol(elem, Decl(file1.ts, 2, 12)) |
| 38 | +>HTMLElement : Symbol(HTMLElement, Decl(file1.ts, 0, 0)) |
| 39 | +>field : Symbol(field, Decl(file1.ts, 2, 34)) |
| 40 | + |
0 commit comments