3 changed files with 17 additions and 6 deletions
@ -1,11 +1,13 @@ |
|||
import {Dispatchable} from './types' |
|||
import {JSONState} from '../util' |
|||
import {Awaitable, 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> |
|||
|
|||
abstract dehydrate(): Awaitable<JSONState> |
|||
|
|||
abstract rehydrate(state: JSONState): Awaitable<void> |
|||
} |
|||
|
Loading…
Reference in new issue