@types/wepy-redux
TypeScript icon, indicating that this package has built-in type declarations

1.7.5 • Public • Published

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

Credits

These definitions were written by Jiayu Liu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/wepy-redux

Weekly Downloads

16

Version

1.7.5

License

MIT

Unpacked Size

3.73 kB

Total Files

5

Last publish

Collaborators

  • types