-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.d.ts
15 lines (9 loc) · 879 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
declare module "@actra-development-oss/redux-persist-transform-filter-immutable" {
import { Transform } from "redux-persist";
type TransformType = 'whitelist' | 'blacklist';
export function createFilter<State, Raw>(reducerName: string | string[], inboundPaths?: string[], outboundPaths?: string[], transformType?: TransformType): Transform<State, Raw>;
export function createWhitelistFilter<State, Raw>(reducerName: string | string, inboundPaths?: string[], outboundPaths?: string[]): Transform<State, Raw>;
export function createBlacklistFilter<State, Raw>(reducerName: string | string, inboundPaths?: string[], outboundPaths?: string[]): Transform<State, Raw>;
export function persistFilter<State, Raw>(state: State, paths: string[], transformType: TransformType): Transform<State, Raw>;
export default createFilter;
}