mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
31 lines
587 B
TypeScript
31 lines
587 B
TypeScript
//// [tests/cases/compiler/declareExternalModuleWithExportAssignedFundule.ts] ////
|
|
|
|
//// [declareExternalModuleWithExportAssignedFundule.ts]
|
|
declare module "express" {
|
|
|
|
export = express;
|
|
|
|
function express(): express.ExpressServer;
|
|
|
|
namespace express {
|
|
|
|
export interface ExpressServer {
|
|
|
|
enable(name: string): ExpressServer;
|
|
|
|
post(path: RegExp, handler: (req: Function) => void ): void;
|
|
|
|
}
|
|
|
|
export class ExpressServerRequest {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
//// [declareExternalModuleWithExportAssignedFundule.js]
|
|
"use strict";
|