app/api/queue.v2/application/contracts/Dispatchable.ts
type Primitive = string | number | boolean;
type RecordValue = Primitive | RecordValue[] | { [key: string]: RecordValue };
type Params = Record<string, RecordValue>;
export interface HeartbeatCallback {
(): Promise<void>;
}
export interface Dispatchable {
handleDispatch(heartbeat: HeartbeatCallback, params: Params): Promise<void>;
}