39 lines
997 B
Text
39 lines
997 B
Text
=== tests/cases/compiler/file2.ts ===
|
|
import appJs = require("file1");
|
|
>appJs : typeof appJs
|
|
|
|
import Services = appJs.App.Services;
|
|
>Services : typeof Services
|
|
>appJs : typeof appJs
|
|
>App : typeof appJs.App
|
|
>Services : typeof Services
|
|
|
|
var x = new Services.UserServices().getUserName();
|
|
>x : string
|
|
>new Services.UserServices().getUserName() : string
|
|
>new Services.UserServices().getUserName : () => string
|
|
>new Services.UserServices() : Services.UserServices
|
|
>Services.UserServices : typeof Services.UserServices
|
|
>Services : typeof Services
|
|
>UserServices : typeof Services.UserServices
|
|
>getUserName : () => string
|
|
|
|
=== tests/cases/compiler/file1.ts ===
|
|
export module App {
|
|
>App : typeof App
|
|
|
|
export module Services {
|
|
>Services : typeof Services
|
|
|
|
export class UserServices {
|
|
>UserServices : UserServices
|
|
|
|
public getUserName(): string {
|
|
>getUserName : () => string
|
|
|
|
return "Bill Gates";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|