UNPKG

445 BTypeScriptView Raw
1import { Disposable } from "../index";
2
3/** Manages the deserializers used for serialized state. */
4export interface DeserializerManager {
5 /** Register the given class(es) as deserializers. */
6 add(...deserializers: Deserializer[]): Disposable;
7
8 /** Deserialize the state and params. */
9 deserialize(state: object): object | undefined;
10}
11
12export interface Deserializer {
13 name: string;
14 deserialize(state: object): object;
15}