Fix return type of emit to use generics

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-10-29 16:30:48 -03:00
parent 249efce8e1
commit e78f36a609
1 changed files with 1 additions and 1 deletions

2
v1/index.d.ts vendored
View File

@ -40,7 +40,7 @@ export class Cloudevent {
export class StructuredHTTPEmitter {
public constructor(configuration?: any);
public emit(event: Cloudevent): Promise;
public emit(event: Cloudevent): Promise<any>;
}
/**