2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
//// interface connectModule {
|
|
|
|
//// (res, req, next): void;
|
|
|
|
//// }
|
|
|
|
//// interface connectExport {
|
|
|
|
//// use: (mod: connectModule) => connectExport;
|
|
|
|
//// listen: (port: number) => void;
|
|
|
|
//// }
|
|
|
|
//// var server: {
|
|
|
|
//// (): connectExport;
|
|
|
|
//// test1: connectModule;
|
|
|
|
//// test2(): connectModule;
|
|
|
|
//// };
|
|
|
|
//// export = server;
|
|
|
|
//// /*1*/export = connectExport;
|
|
|
|
////
|
|
|
|
////
|
|
|
|
|
|
|
|
edit.disableFormatting();
|
2014-08-01 22:50:59 +02:00
|
|
|
goTo.marker('1');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
edit.deleteAtCaret(24);
|
|
|
|
|
2014-08-01 22:50:59 +02:00
|
|
|
goTo.marker('1');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
edit.insert("export = connectExport;\n");
|