feat(events-backend,events-node): improve parser interface

Signed-off-by: Rogerio Angeliski <angeliski@hotmail.com>
This commit is contained in:
Rogerio Angeliski
2025-02-26 20:18:14 -03:00
parent 144661b05f
commit cf75bca4f3
7 changed files with 58 additions and 7 deletions
@@ -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>;