sdk-javascript/v1/index.d.ts

30 lines
531 B
TypeScript

/**
* CloudEvent class definition
*/
export class Cloudevent {
public constructor(spec?: any, formatter?: any);
public format(): any;
public toString(): string;
public id(id: string): Cloudevent;
public getId(): string;
public type(type: string): Cloudevent;
public getType(): string;
}
/**
* CloudEvents Spec v1.0 definitions
*/
export interface Spec {
new (caller: any): Spec;
}
/**
* Function to create CloudEvents instances
*/
export declare function event(): Cloudevent;
export default Cloudevent;