TypeScript/tests/baselines/reference/exportImportMultipleFiles.types

32 lines
858 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');
2014-08-28 21:40:58 +02:00
>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
2014-08-25 19:36:12 +02:00
>lib.math : typeof lib.math
>lib : typeof lib
>math : typeof lib.math
>add : (a: any, b: any) => any
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
2014-08-15 23:33:16 +02:00
>a : any
>b : any
>a + b : any
>a : any
>b : any
=== tests/cases/compiler/exportImportMultipleFiles_library.ts ===
export import math = require("exportImportMultipleFiles_math");
2014-08-28 21:40:58 +02:00
>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
2014-08-25 19:36:12 +02:00
>math : typeof math
>add : (a: any, b: any) => any
2014-08-15 23:33:16 +02:00