UNPKG

dino-express

Version:

DinO enabled REST framework based on express

12 lines (11 loc) 432 B
import { type GenericObject } from '../Types'; export declare class ApplicationEvent { private readonly id; private readonly type; private readonly timestamp; private readonly payload; protected constructor(id: string, type: string, payload: GenericObject); addToPayload(info: GenericObject): void; asObject(): GenericObject; static create(type: string, payload?: GenericObject): ApplicationEvent; }