Afanasev_Stepan_PIbd-21_IP/ИП 3 лаба/node_modules/express-urlrewrite/index.d.ts

18 lines
469 B
TypeScript
Raw Permalink Normal View History

2024-01-10 16:11:49 +04:00
// https://github.com/kapouer/express-urlrewrite
declare module "express-urlrewrite" {
import * as Http from "http";
let modName: urlRewrite.urlrewrite;
module urlRewrite {
interface urlrewrite {
(from: string, to?: string): expressUrlRewriteInstance
}
interface expressUrlRewriteInstance {
(req: Http.IncomingMessage, res: Http.ServerResponse, cb: () => any): void
}
}
export = modName;
}