2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/exportEqualNamespaces.ts ===
|
|
|
|
declare module server {
|
2014-08-28 21:40:58 +02:00
|
|
|
>server : Date
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
interface Server extends Object { }
|
|
|
|
>Server : Server
|
|
|
|
>Object : Object
|
|
|
|
}
|
|
|
|
|
|
|
|
interface server {
|
|
|
|
>server : server
|
|
|
|
|
|
|
|
(): server.Server;
|
2014-11-11 04:19:33 +01:00
|
|
|
>server : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>Server : server.Server
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
startTime: Date;
|
|
|
|
>startTime : Date
|
|
|
|
>Date : Date
|
|
|
|
}
|
|
|
|
|
|
|
|
var x = 5;
|
|
|
|
>x : number
|
|
|
|
|
|
|
|
var server = new Date();
|
|
|
|
>server : Date
|
|
|
|
>new Date() : Date
|
2014-10-29 05:21:47 +01:00
|
|
|
>Date : DateConstructor
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export = server;
|
|
|
|
>server : server
|
|
|
|
|