express-multi-hijack
Version:
Multi Hijack Response data on ExpressJS
9 lines • 417 B
TypeScript
import { Request, Response, NextFunction } from 'express';
interface IHijackConfig {
json?: boolean;
onJsonParseError?: (err: Error) => void | any;
handler: (responseBody: any, req: Request, res: Response, next: NextFunction) => void | any;
}
declare const Hijack: (config: IHijackConfig) => (req: Request, res: Response, next: NextFunction) => any;
export { Hijack, };
//# sourceMappingURL=index.d.ts.map