http-gateway/model/def.ts

9 lines
183 B
TypeScript
Raw Permalink Normal View History

2023-03-01 21:50:09 +08:00
interface HandlerFn {
(options: any): (req:Request,resp: Response)=>void
}
interface HandlerClass {
createHandler: HandlerFn
}
type HandlerFactory = HandlerFn | HandlerClass