2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/file2.ts ===
|
|
|
|
import appJs = require("file1");
|
2014-08-28 21:40:58 +02:00
|
|
|
>appJs : typeof appJs
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
import Services = appJs.App.Services;
|
2014-08-28 21:40:58 +02:00
|
|
|
>Services : typeof Services
|
2014-08-25 19:36:12 +02:00
|
|
|
>appJs : typeof appJs
|
|
|
|
>App : typeof appJs.App
|
2014-08-15 23:33:16 +02:00
|
|
|
>Services : typeof Services
|
|
|
|
|
|
|
|
var x = new Services.UserServices().getUserName();
|
|
|
|
>x : string
|
|
|
|
>new Services.UserServices().getUserName() : string
|
|
|
|
>new Services.UserServices().getUserName : () => string
|
2014-08-25 19:36:12 +02:00
|
|
|
>new Services.UserServices() : Services.UserServices
|
|
|
|
>Services.UserServices : typeof Services.UserServices
|
2014-08-15 23:33:16 +02:00
|
|
|
>Services : typeof Services
|
2014-08-25 19:36:12 +02:00
|
|
|
>UserServices : typeof Services.UserServices
|
2014-08-15 23:33:16 +02:00
|
|
|
>getUserName : () => string
|
|
|
|
|
|
|
|
=== tests/cases/compiler/file1.ts ===
|
|
|
|
export module App {
|
2014-08-28 21:40:58 +02:00
|
|
|
>App : typeof App
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export module Services {
|
2014-08-28 21:40:58 +02:00
|
|
|
>Services : typeof Services
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export class UserServices {
|
|
|
|
>UserServices : UserServices
|
|
|
|
|
|
|
|
public getUserName(): string {
|
|
|
|
>getUserName : () => string
|
|
|
|
|
|
|
|
return "Bill Gates";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|