Installation
npm install --save @types/redux-watch
Summary
This package contains type definitions for redux-watch (https://github.com/jprichardson/redux-watch#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/redux-watch.
type FieldPath = string | number | Array<string | number>;
type ChangeHandler<T> = (newValue: T, oldValue: T, pathToField: FieldPath) => void;
type FieldWatch = () => void;
type ChangeHandlerWrapper<T> = (changeHandler: ChangeHandler<T>) => FieldWatch;
declare function watch(
getState: () => any,
pathToField?: FieldPath,
compare?: (a: any, b: any) => boolean,
): ChangeHandlerWrapper<any>;
export = watch;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by zoltan.boros.