getDefaultEnhancers.d.ts 711 B

123456789101112131415
  1. import type { StoreEnhancer } from 'redux';
  2. import type { AutoBatchOptions } from './autoBatchEnhancer';
  3. import { Tuple } from './utils';
  4. import type { Middlewares } from './configureStore';
  5. import type { ExtractDispatchExtensions } from './tsHelpers';
  6. type GetDefaultEnhancersOptions = {
  7. autoBatch?: boolean | AutoBatchOptions;
  8. };
  9. export type GetDefaultEnhancers<M extends Middlewares<any>> = (options?: GetDefaultEnhancersOptions) => Tuple<[StoreEnhancer<{
  10. dispatch: ExtractDispatchExtensions<M>;
  11. }>]>;
  12. export declare const buildGetDefaultEnhancers: <M extends Middlewares<any>>(middlewareEnhancer: StoreEnhancer<{
  13. dispatch: ExtractDispatchExtensions<M>;
  14. }>) => GetDefaultEnhancers<M>;
  15. export {};