Interface IRestorer<T, U, V>

An interface for a state restorer.

Typeparam

T - The restorable collection's type.

Typeparam

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

Typeparam

V - The restored promise resolution type. Defaults to any.

Type Parameters

Hierarchy

Properties

Methods

Properties

restored: Promise<V>

A promise that settles when the collection has been restored.

Methods

  • Restore the objects in a given restorable collection.

    Parameters

    • restorable: T

      The restorable collection being restored.

    • options: IRestorable.IOptions<U>

      The configuration options that describe restoration.

    Returns Promise<V>

    A promise that settles when restored with any results.

Generated using TypeDoc