2014-07-13 01:04:16 +02:00
|
|
|
//// [tests/cases/compiler/exportEqualMemberMissing.ts] ////
|
|
|
|
|
|
|
|
//// [exportEqualMemberMissing_0.ts]
|
|
|
|
module server {
|
|
|
|
export interface connectModule {
|
|
|
|
(res, req, next): void;
|
|
|
|
}
|
|
|
|
export interface connectExport {
|
|
|
|
use: (mod: connectModule) => connectExport;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
var server: {
|
|
|
|
(): server.connectExport;
|
|
|
|
foo: Date;
|
|
|
|
};
|
|
|
|
export = server;
|
|
|
|
|
|
|
|
//// [exportEqualMemberMissing_1.ts]
|
|
|
|
///<reference path='exportEqualMemberMissing_0.ts'/>
|
|
|
|
import connect = require('exportEqualMemberMissing_0');
|
|
|
|
connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''.
|
|
|
|
|
|
|
|
|
|
|
|
//// [exportEqualMemberMissing_0.js]
|
|
|
|
var server;
|
|
|
|
module.exports = server;
|
|
|
|
//// [exportEqualMemberMissing_1.js]
|
2014-08-14 15:57:59 +02:00
|
|
|
///<reference path='exportEqualMemberMissing_0.ts'/>
|
2014-07-13 01:04:16 +02:00
|
|
|
var connect = require('exportEqualMemberMissing_0');
|
2014-08-16 00:49:09 +02:00
|
|
|
connect().use(connect.static('foo')); // Error 1 The property 'static' does not exist on value of type ''.
|