types.tsx 359 B

123456789101112
  1. /**
  2. * All stores implementing this interface have a common getState which returns
  3. * the stores state.
  4. *
  5. * When a store implements this it becomes usable with the `useLegacyStore` hook.
  6. */
  7. export interface CommonStoreDefinition<T> extends Reflux.StoreDefinition {
  8. /**
  9. * Returns the current state represented within the store
  10. */
  11. getState(): T;
  12. }