mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
653 B
TypeScript
18 lines
653 B
TypeScript
// Type definitions for redux-batched-subscribe 0.1
|
|
// Project: https://github.com/tappleby/redux-batched-subscribe
|
|
// Definitions by: Dibyo Majumdar <https://github.com/mDibyo>
|
|
// Aziz Khambati <https://github.com/azizhk>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.3
|
|
|
|
import { Store, StoreEnhancer } from 'redux';
|
|
|
|
export type NotifyFunction = () => void;
|
|
export type BatchFunction = (notify: NotifyFunction) => void;
|
|
|
|
export interface StoreExtension {
|
|
subscribeImmediate: Store["subscribe"];
|
|
}
|
|
|
|
export function batchedSubscribe(batch: BatchFunction): StoreEnhancer<StoreExtension>;
|