UNPKG

woltage

Version:

A CQRS and Event-Sourcing Framework

14 lines (13 loc) 395 B
import type Event from './Event.ts'; export default class EventCaster { static CASTING_DIRECTIONS: Readonly<{ UP: "up"; DOWN: "down"; }>; static CASTING_ERRORS: Readonly<{ KEY_MISSING: "Key missing"; TYPE_CHANGED: "Type changed"; }>; static cast(event: Event, targetVersion: number): Promise<Event<any, any>>; static isCastable(): void; }