mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-29 01:45:49 +08:00
Missed options in ServerExtPoints
This commit is contained in:
2
hapi/hapi.d.ts
vendored
2
hapi/hapi.d.ts
vendored
@@ -2044,7 +2044,7 @@ declare module "hapi" {
|
||||
// All requests will get routed to '/test'*/
|
||||
ext(event: RequestExtPoints, method: (request: Request, reply: IReply, bind?: any) => void, options?: { before: string | string[]; after: string | string[]; bind?: any }): void;
|
||||
ext<T>(event: RequestExtPoints, method: (request: Request, reply: IStrictReply<T>, bind?: any) => void, options?: { before: string | string[]; after: string | string[]; bind?: any }): void;
|
||||
ext(event: ServerExtPoints, method: (server: Server, next: (err?: any) => void, bind?: any) => void): void;
|
||||
ext(event: ServerExtPoints, method: (server: Server, next: (err?: any) => void, bind?: any) => void, options?: { before: string | string[]; after: string | string[]; bind?: any }): void;
|
||||
|
||||
/** server.handler(name, method)
|
||||
Registers a new handler type to be used in routes where:
|
||||
|
||||
Reference in New Issue
Block a user