Context.d.ts 662 B

1234567891011121314
  1. import * as React from 'react';
  2. import type { Action, AnyAction, Store } from 'redux';
  3. import type { Subscription } from '../utils/Subscription';
  4. import type { CheckFrequency } from '../hooks/useSelector';
  5. export interface ReactReduxContextValue<SS = any, A extends Action = AnyAction> {
  6. store: Store<SS, A>;
  7. subscription: Subscription;
  8. getServerState?: () => SS;
  9. stabilityCheck: CheckFrequency;
  10. noopCheck: CheckFrequency;
  11. }
  12. export declare const ReactReduxContext: React.Context<ReactReduxContextValue<any, AnyAction>>;
  13. export declare type ReactReduxContextInstance = typeof ReactReduxContext;
  14. export default ReactReduxContext;