fix An implementation cannot be declared in ambient contexts
Signed-off-by: Fabio José <fabiojose@gmail.com>
This commit is contained in:
parent
50b0da117f
commit
c294cee896
|
@ -46,7 +46,8 @@
|
||||||
"mocha": "5.2.0",
|
"mocha": "5.2.0",
|
||||||
"mocha-lcov-reporter": "1.3.0",
|
"mocha-lcov-reporter": "1.3.0",
|
||||||
"nock": "10.0.2",
|
"nock": "10.0.2",
|
||||||
"request": "^2.88.0"
|
"request": "^2.88.0",
|
||||||
|
"typescript": "^3.6.4"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import * as v1js from './index.js'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CloudEvent class definition
|
* CloudEvent class definition
|
||||||
*/
|
*/
|
||||||
|
@ -24,8 +22,6 @@ export interface Spec {
|
||||||
/**
|
/**
|
||||||
* Function to create CloudEvents instances
|
* Function to create CloudEvents instances
|
||||||
*/
|
*/
|
||||||
export function event(): Cloudevent {
|
export type event = () => Cloudevent;
|
||||||
return new Cloudevent();
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Cloudevent;
|
export default Cloudevent;
|
||||||
|
|
Loading…
Reference in New Issue