34 lines
518 B
Text
34 lines
518 B
Text
=== tests/cases/compiler/exportAssignValueAndType.ts ===
|
|
declare module http {
|
|
>http : any
|
|
|
|
export interface Server { openPort: number; }
|
|
>Server : Server
|
|
>openPort : number
|
|
}
|
|
|
|
interface server {
|
|
>server : server
|
|
|
|
(): http.Server;
|
|
>http : any
|
|
>Server : http.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
|
|
|
|
|