Fix return type of emit to use generics
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
249efce8e1
commit
e78f36a609
|
@ -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>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue