Types for structured receiber

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-11-02 07:05:54 -03:00
parent 41d9328ac8
commit b9d5a54d51
1 changed files with 8 additions and 0 deletions

8
v1/index.d.ts vendored
View File

@ -56,6 +56,14 @@ export class BinaryHTTPEmitter {
public emit(event: Cloudevent): Promise<any>;
}
/**
* HTTP receiver for Structured mode
*/
export class StructuredHTTPReceiver {
public check(payload: any, headers: Map<String, String>): void;
public parse(payload: any, headers: Map<String, String>): Cloudevent;
}
/**
* Function to create CloudEvents instances
*/