44 lines
973 B
Text
44 lines
973 B
Text
|
=== tests/cases/compiler/exportAssignmentWithPrivacyError.ts ===
|
||
|
interface connectmodule {
|
||
|
>connectmodule : connectmodule
|
||
|
|
||
|
(res, req, next): void;
|
||
|
>res : any
|
||
|
>req : any
|
||
|
>next : any
|
||
|
}
|
||
|
interface connectexport {
|
||
|
>connectexport : connectexport
|
||
|
|
||
|
use: (mod: connectmodule) => connectexport;
|
||
|
>use : (mod: connectmodule) => connectexport
|
||
|
>mod : connectmodule
|
||
|
>connectmodule : connectmodule
|
||
|
>connectexport : connectexport
|
||
|
|
||
|
listen: (port: number) => void;
|
||
|
>listen : (port: number) => void
|
||
|
>port : number
|
||
|
}
|
||
|
|
||
|
var server: {
|
||
|
>server : { (): connectexport; test1: connectmodule; test2(): connectmodule; }
|
||
|
|
||
|
(): connectexport;
|
||
|
>connectexport : connectexport
|
||
|
|
||
|
test1: connectmodule;
|
||
|
>test1 : connectmodule
|
||
|
>connectmodule : connectmodule
|
||
|
|
||
|
test2(): connectmodule;
|
||
|
>test2 : () => connectmodule
|
||
|
>connectmodule : connectmodule
|
||
|
|
||
|
};
|
||
|
|
||
|
export = server;
|
||
|
>server : { (): connectexport; test1: connectmodule; test2(): connectmodule; }
|
||
|
|
||
|
|