TypeScript/tests/baselines/reference/exportImportMultipleFiles.types

36 lines
910 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/exportImportMultipleFiles_userCode.ts ===
import lib = require('./exportImportMultipleFiles_library');
>lib : typeof lib
2014-08-15 23:33:16 +02:00
lib.math.add(3, 4); // Shouldnt be error
>lib.math.add(3, 4) : any
>lib.math.add : (a: any, b: any) => any
>lib.math : typeof lib.math
>lib : typeof lib
>math : typeof lib.math
>add : (a: any, b: any) => any
2015-04-13 21:36:11 +02:00
>3 : number
>4 : number
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/exportImportMultipleFiles_math.ts ===
export function add(a, b) { return a + b; }
>add : (a: any, b: any) => any
>a : any
>b : any
2014-08-15 23:33:16 +02:00
>a + b : any
>a : any
>b : any
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/exportImportMultipleFiles_library.ts ===
export import math = require("exportImportMultipleFiles_math");
>math : typeof math
2014-08-15 23:33:16 +02:00
math.add(3, 4); // OK
>math.add(3, 4) : any
>math.add : (a: any, b: any) => any
>math : typeof math
>add : (a: any, b: any) => any
2015-04-13 21:36:11 +02:00
>3 : number
>4 : number
2014-08-15 23:33:16 +02:00