fix An implementation cannot be declared in ambient contexts

Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
Fabio José 2019-10-29 09:46:20 -03:00
parent 50b0da117f
commit c294cee896
2 changed files with 3 additions and 6 deletions

View File

@ -46,7 +46,8 @@
"mocha": "5.2.0",
"mocha-lcov-reporter": "1.3.0",
"nock": "10.0.2",
"request": "^2.88.0"
"request": "^2.88.0",
"typescript": "^3.6.4"
},
"publishConfig": {
"access": "public"

6
v1/index.d.ts vendored
View File

@ -1,5 +1,3 @@
import * as v1js from './index.js'
/**
* CloudEvent class definition
*/
@ -24,8 +22,6 @@ export interface Spec {
/**
* Function to create CloudEvents instances
*/
export function event(): Cloudevent {
return new Cloudevent();
}
export type event = () => Cloudevent;
export default Cloudevent;