20 lines
399 B
TypeScript
20 lines
399 B
TypeScript
|
//@module: commonjs
|
||
|
// @declaration: true
|
||
|
module m2 {
|
||
|
export interface connectModule {
|
||
|
(res, req, next): void;
|
||
|
}
|
||
|
export interface connectExport {
|
||
|
use: (mod: connectModule) => connectExport;
|
||
|
listen: (port: number) => void;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
var m2: {
|
||
|
(): m2.connectExport;
|
||
|
test1: m2.connectModule;
|
||
|
test2(): m2.connectModule;
|
||
|
};
|
||
|
|
||
|
export = m2;
|