33 lines
514 B
Text
33 lines
514 B
Text
=== tests/cases/compiler/exportEqualNamespaces.ts ===
|
|
declare module server {
|
|
>server : Date
|
|
|
|
interface Server extends Object { }
|
|
>Server : Server
|
|
>Object : Object
|
|
}
|
|
|
|
interface server {
|
|
>server : server
|
|
|
|
(): server.Server;
|
|
>server : any
|
|
>Server : server.Server
|
|
|
|
startTime: Date;
|
|
>startTime : Date
|
|
>Date : Date
|
|
}
|
|
|
|
var x = 5;
|
|
>x : number
|
|
>5 : number
|
|
|
|
var server = new Date();
|
|
>server : Date
|
|
>new Date() : Date
|
|
>Date : DateConstructor
|
|
|
|
export = server;
|
|
>server : server
|
|
|