feat(events-backend,events-node): improve parser interface
Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com>
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
import { Request } from 'express';
|
||||
import { ParsedMediaType } from 'content-type';
|
||||
/**
|
||||
* @public
|
||||
*/
|
||||
@@ -29,5 +30,6 @@ export type HttpBodyParsed = {
|
||||
*/
|
||||
export type HttpBodyParser = (
|
||||
request: Request,
|
||||
parsedMediaType: ParsedMediaType,
|
||||
topic: string,
|
||||
) => Promise<HttpBodyParsed>;
|
||||
|
||||
Reference in New Issue
Block a user