TypeScript/tests/baselines/reference/import_reference-exported-alias.types
2014-08-15 14:37:48 -07:00

49 lines
1 KiB
Plaintext

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