Interface SyncStore<T>

React.js synchronous state interface.

interface SyncStore<T> {
    getSnapshot: (() => T);
    subscribe: SyncStoreSubscribe;
}

Type Parameters

  • T

Implemented by

Properties

getSnapshot: (() => T)

Type declaration

    • (): T
    • Returns T