2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/conformance/externalModules/foo_1.ts ===
|
|
|
|
import foo = require("./foo_0");
|
2014-08-28 21:40:58 +02:00
|
|
|
>foo : typeof foo
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
if(foo.answer === 42){
|
|
|
|
>foo.answer === 42 : boolean
|
|
|
|
>foo.answer : number
|
2014-08-25 19:36:12 +02:00
|
|
|
>foo : typeof foo
|
2014-08-15 23:33:16 +02:00
|
|
|
>answer : number
|
|
|
|
|
|
|
|
var x = new foo();
|
2014-08-25 19:36:12 +02:00
|
|
|
>x : foo
|
|
|
|
>new foo() : foo
|
|
|
|
>foo : typeof foo
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
=== tests/cases/conformance/externalModules/foo_0.ts ===
|
|
|
|
class Foo {
|
|
|
|
>Foo : Foo
|
|
|
|
|
|
|
|
test = "test";
|
|
|
|
>test : string
|
|
|
|
}
|
|
|
|
module Foo {
|
2014-08-28 21:40:58 +02:00
|
|
|
>Foo : typeof Foo
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var answer = 42;
|
|
|
|
>answer : number
|
|
|
|
}
|
|
|
|
export = Foo;
|
|
|
|
>Foo : Foo
|
|
|
|
|