Type aliases
Application
ApplicationRequestHandler
Type parameters
Errback
Errback: (err: Error) => void
ErrorRequestHandler
Error
Request
Handler
<P, ResBody, ReqBody, ReqQuery, Locals>: (err
: any, req
: Request<P, ResBody, ReqBody, ReqQuery, Locals>, res
: Response<ResBody, Locals>, next
: NextFunction) => voidType parameters
ResBody = any
ReqBody = any
Locals: Record<string, any> = Record<string, any>
Type declaration
Parameters
err: any
req: Request<P, ResBody, ReqBody, ReqQuery, Locals>
res: Response<ResBody, Locals>
Returns void
GetRouteParameter
Type parameters
PathParams
PathParams: string | RegExp | (string | RegExp)[]
Query
RemoveTail
RemoveTail<S, Tail>: S extends `${infer P}${Tail}` ? P : S
Type parameters
RequestHandlerParams
Request
Handler
Params
<P, ResBody, ReqBody, ReqQuery, Locals>: RequestHandler<P, ResBody, ReqBody, ReqQuery, Locals> | ErrorRequestHandler<P, ResBody, ReqBody, ReqQuery, Locals> | (RequestHandler<P> | ErrorRequestHandler<P>)[]Type parameters
ResBody = any
ReqBody = any
Locals: Record<string, any> = Record<string, any>
RequestParamHandler
Result
ResultInvalid
ResultInvalid: -2
ResultUnsatisfiable
ResultUnsatisfiable: -1
RouteParameters
Type parameters
Send
Send<ResBody, T>: (body?: ResBody) => T
Type parameters
WebSocketAlias
WebsocketMethod
Type parameters
WebsocketRequestHandler