Interface IOptions<T>

The state restoration configuration options.


T - The type of object held by the restorable collection.

Type Parameters



args?: ((obj) => ReadonlyPartialJSONObject)

Type declaration

command: string

The command to execute when restoring instances.

connector: IDataConnector<ReadonlyPartialJSONValue, ReadonlyPartialJSONValue, string, string>

The data connector to fetch restore data.

name: ((obj) => string)

Type declaration

    • (obj): string
    • A function that returns a unique persistent name for this instance.


      • obj: T

      Returns string

registry: CommandRegistry

The command registry which holds the restore command.

when?: Promise<any> | Promise<any>[]

The point after which it is safe to restore state.

Generated using TypeDoc