- Preparing search index...
- The search index is not available
@infinitylist
Constructors
constructor
- new Reedhook(webhookSecret?, options?): Reedhook
-
Parameters
-
Optional
webhookSecret: string
-
Methods
hookListener
- hookListener(fn): ((req, res, next) => Promise<void>)
-
Parameters
-
fn: ((payload, req?, res?, next?) => void | Promise<void>)
-
- (payload, req?, res?, next?): void | Promise<void>
-
Parameters
-
-
Optional
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
Optional
res: Response<any, Record<string, any>>
-
Optional
next: NextFunction
Returns void | Promise<void>
Returns ((req, res, next) => Promise<void>)
-
- (req, res, next): Promise<void>
-
Parameters
-
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
res: Response<any, Record<string, any>>
-
next: NextFunction
Returns Promise<void>