File: libReferenceNoLibBundle.types

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (24 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=== tests/cases/conformance/declarationEmit/fakelib.ts ===
// Test that passing noLib disables <reference lib> resolution.
No type information for this code.
No type information for this code.interface Object { }
No type information for this code.interface Array<T> { }
No type information for this code.interface String { }
No type information for this code.interface Boolean { }
No type information for this code.interface Number { }
No type information for this code.interface Function { }
No type information for this code.interface RegExp { }
No type information for this code.interface IArguments { }
No type information for this code.
No type information for this code.
No type information for this code.=== tests/cases/conformance/declarationEmit/file1.ts ===
/// <reference lib="dom" />
export declare interface HTMLElement { field: string; }
>field : string

export const elem: HTMLElement = { field: 'a' };
>elem : HTMLElement
>{ field: 'a' } : { field: string; }
>field : string
>'a' : "a"