From 596bd3fd64db6e02fea04254861b8b6e38ae7b65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabio=20Jos=C3=A9?= Date: Mon, 4 Nov 2019 09:46:53 -0300 Subject: [PATCH] ts types fo http binary receiver spev 1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabio José --- v1/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/v1/index.d.ts b/v1/index.d.ts index ac65dc9..8eba8db 100644 --- a/v1/index.d.ts +++ b/v1/index.d.ts @@ -64,6 +64,14 @@ export class StructuredHTTPReceiver { public parse(payload: any, headers: any): Cloudevent; } +/** + * HTTP receiver for Structured mode + */ +export class BinaryHTTPReceiver { + public check(payload: any, headers: any): void; + public parse(payload: any, headers: any): Cloudevent; +} + /** * Function to create CloudEvents instances */