32 lines
874 B
Text
32 lines
874 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 : unknown
|
|
>Server : server.Server
|
|
|
|
startTime: Date;
|
|
>startTime : Date
|
|
>Date : Date
|
|
}
|
|
|
|
var x = 5;
|
|
>x : number
|
|
|
|
var server = new Date();
|
|
>server : Date
|
|
>new Date() : Date
|
|
>Date : { (): string; new (): Date; new (value: number): Date; new (value: string): Date; new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date; prototype: Date; parse(s: string): number; UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number; now(): number; }
|
|
|
|
export = server;
|
|
>server : server
|
|
|