Installation
npm install --save @types/wepy-redux
Summary
This package contains type definitions for wepy-redux (https://github.com/Tencent/wepy/tree/1.7.x/packages/wepy-redux).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/wepy-redux.
index.d.ts
import { Store } from "redux";
import wepy from "wepy";
export interface MapStateToProps {
[propName: string]: ((state: any) => any) | string;
}
export interface MapDispatchToProps {
[propName: string]: ((store: any, ...args: any[]) => void) | string;
}
export function connect(
mapStateToProps: MapStateToProps,
mapDispatchToProps: MapDispatchToProps,
): <T extends wepy.Component>(original: T) => T;
export function setStore(store: Store<any, any>): void;
export function getStore(): Store;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: @types/wepy, redux
Credits
These definitions were written by Jiayu Liu.