mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
571 B
TypeScript
25 lines
571 B
TypeScript
//// [tests/cases/compiler/declaredExternalModuleWithExportAssignment.ts] ////
|
|
|
|
//// [declaredExternalModuleWithExportAssignment.ts]
|
|
declare module 'connect' {
|
|
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;
|
|
}
|
|
|
|
|
|
//// [declaredExternalModuleWithExportAssignment.js]
|
|
"use strict";
|