UNPKG

redux-allow-deny

Version:

Redux middleware to execute a callback on action types using a allowlist or denylist approach

14 lines (11 loc) 312 B
// Type definitions for redux-allow-deny // Definitions by: rnsloan https://github.con/rnsloan import * as Redux from "redux"; export function allowlist( actions: string[], callback: () => void ): Redux.Middleware; export function denylist( actions: string[], callback: () => void ): Redux.Middleware;