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

50 lines
1.8 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/file2.ts ===
import appJs = require("file1");
>appJs : typeof appJs, Symbol(appJs,Decl(file2.ts,0,0))
2014-08-15 23:33:16 +02:00
import Services = appJs.Services;
>Services : typeof appJs.Services, Symbol(Services,Decl(file2.ts,0,32))
>appJs : typeof appJs, Symbol(appJs,Decl(file1.ts,0,0))
>Services : typeof appJs.Services, Symbol(appJs.Services,Decl(file1.ts,0,12))
2014-08-15 23:33:16 +02:00
import UserServices = Services.UserServices;
>UserServices : typeof Services.UserServices, Symbol(UserServices,Decl(file2.ts,1,33))
>Services : typeof appJs.Services, Symbol(appJs.Services,Decl(file1.ts,0,12))
>UserServices : Services.UserServices, Symbol(Services.UserServices,Decl(file1.ts,1,28))
2014-08-15 23:33:16 +02:00
var x = new UserServices().getUserName();
>x : string, Symbol(x,Decl(file2.ts,3,3))
2014-08-15 23:33:16 +02:00
>new UserServices().getUserName() : string
>new UserServices().getUserName : () => string, Symbol(Services.UserServices.getUserName,Decl(file1.ts,2,35))
2014-08-25 19:36:12 +02:00
>new UserServices() : Services.UserServices
>UserServices : typeof Services.UserServices, Symbol(UserServices,Decl(file2.ts,1,33))
>getUserName : () => string, Symbol(Services.UserServices.getUserName,Decl(file1.ts,2,35))
2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/file1.ts ===
module App {
>App : typeof App, Symbol(App,Decl(file1.ts,0,0))
2014-08-15 23:33:16 +02:00
export module Services {
>Services : typeof Services, Symbol(Services,Decl(file1.ts,0,12))
2014-08-15 23:33:16 +02:00
export class UserServices {
>UserServices : UserServices, Symbol(UserServices,Decl(file1.ts,1,28))
2014-08-15 23:33:16 +02:00
public getUserName(): string {
>getUserName : () => string, Symbol(getUserName,Decl(file1.ts,2,35))
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, Symbol(Mod,Decl(file1.ts,8,1))
>App : typeof App, Symbol(App,Decl(file1.ts,0,0))
2014-08-15 23:33:16 +02:00
export = Mod;
>Mod : typeof App, Symbol(Mod,Decl(file1.ts,8,1))
2014-08-15 23:33:16 +02:00