PeerTube/server/types/express-handler.ts

4 lines
166 B
TypeScript

import { NextFunction, Request, Response } from 'express'
export type ExpressPromiseHandler = (req: Request<any>, res: Response, next: NextFunction) => Promise<any>