TypeScript/tests/baselines/reference/import_reference-exported-alias.types

50 lines
1.1 KiB
Plaintext
Raw Normal View History

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