All checks were successful
continuous-integration/drone/push Build is passing
12 lines
304 B
TypeScript
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>
|
|
}
|