Files
lib/src/event/Event.ts
garrettmills 61731c4ebd
All checks were successful
continuous-integration/drone/push Build is passing
Add basic concepts for event bus, and implement in request and model
2021-06-04 01:03:31 -05:00

12 lines
304 B
TypeScript

import {Dispatchable} from './types'
import {JSONState} from '../util'
/**
* Abstract class representing an event that may be fired.
*/
export abstract class Event implements Dispatchable {
abstract dehydrate(): Promise<JSONState>
abstract rehydrate(state: JSONState): void | Promise<void>
}