File: nameWithRelativePaths.types

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (51 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (7)
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
41
42
43
44
45
46
47
48
49
50
51
=== tests/cases/conformance/externalModules/test/foo_3.ts ===
import foo0 = require('../foo_0');
>foo0 : typeof foo0

import foo1 = require('./test/foo_1');
>foo1 : typeof foo1

import foo2 = require('./.././test/foo_2');
>foo2 : typeof foo2

if(foo2.M2.x){
>foo2.M2.x : boolean
>foo2.M2 : typeof foo2.M2
>foo2 : typeof foo2
>M2 : typeof foo2.M2
>x : boolean

	var x = foo0.foo + foo1.f();
>x : number
>foo0.foo + foo1.f() : number
>foo0.foo : number
>foo0 : typeof foo0
>foo : number
>foo1.f() : number
>foo1.f : () => number
>foo1 : typeof foo1
>f : () => number
}

=== tests/cases/conformance/externalModules/foo_0.ts ===
export var foo = 42;
>foo : number
>42 : 42

=== tests/cases/conformance/externalModules/test/test/foo_1.ts ===
export function f(){
>f : () => number

	return 42;
>42 : 42
}

=== tests/cases/conformance/externalModules/test/foo_2.ts ===
export module M2 {
>M2 : typeof M2

	export var x = true;
>x : boolean
>true : true
}