Interface IRestorer<T, U, V>

An interface for a state restorer.

T - The restorable collection's type.

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

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

interface IRestorer<
    T extends IRestorable<U> = IRestorable<IObservableDisposable>,
    U extends IObservableDisposable = IObservableDisposable,
    V = any,
> {
    restored: Promise<V>;
    restore(restorable: T, options: IRestorable.IOptions<U>): Promise<V>;
}

Type Parameters

Hierarchy (View Summary)

Properties

Methods

Properties

restored: Promise<V>

A promise that settles when the collection has been restored.

Methods