npm.io
0.1.7 • Published 2 years ago

@types/redux-batched-subscribe

Licence
MIT
Version
0.1.7
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/redux-batched-subscribe

Summary

This package contains type definitions for redux-batched-subscribe (https://github.com/tappleby/redux-batched-subscribe).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-batched-subscribe.

index.d.ts

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>;

Additional Details

  • Last updated: Tue, 07 Nov 2023 1536 GMT
  • Dependencies: redux

Credits

These definitions were written by Dibyo Majumdar, and Aziz Khambati.