Correct the condition for variable statement emit in the declaraiton file

This commit is contained in:
Sheetal Nandi
2014-07-11 15:13:01 -07:00
parent cd14e36460
commit bb7f7fb8dd
7 changed files with 99 additions and 36 deletions

View File

@@ -0,0 +1,20 @@
//@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 x = 10, m2: {
(): m2.connectExport;
test1: m2.connectModule;
test2(): m2.connectModule;
};
export = m2;