20 lines
332 B
TypeScript
20 lines
332 B
TypeScript
//// [exportAssignValueAndType.ts]
|
|
declare module http {
|
|
export interface Server { openPort: number; }
|
|
}
|
|
|
|
interface server {
|
|
(): http.Server;
|
|
startTime: Date;
|
|
}
|
|
|
|
var x = 5;
|
|
var server = new Date();
|
|
export = server;
|
|
|
|
|
|
|
|
//// [exportAssignValueAndType.js]
|
|
var x = 5;
|
|
var server = new Date();
|
|
module.exports = server;
|