Return a new Cloudevent() ts impl

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-10-29 09:33:56 -03:00
parent 23fe17de97
commit 50b0da117f
1 changed files with 1 additions and 1 deletions

2
v1/index.d.ts vendored
View File

@ -25,7 +25,7 @@ export interface Spec {
* Function to create CloudEvents instances
*/
export function event(): Cloudevent {
return v1js.event();
return new Cloudevent();
}
export default Cloudevent;