DefinitelyTyped/types/wepy-redux/index.d.ts
Nathan Shively-Sanders 6115ac10be
Add new npm-naming exemptions (#36969)
* Add new npm-naming exemptions

These packages fail the upcoming requirement that the types package
version match a version that exists for the original package.

In other words, these packages have a version, like 0.0 or 1.0, that
their original package doesn't have. The "npm-naming" lint rule will
soon prevent this, so these packages need to be exempt from this rule.

* Restore some useful comments/formatting

* Update required TS version for stale packages
2019-07-17 14:06:12 -07:00

25 lines
782 B
TypeScript

// Type definitions for wepy-redux 1.7
// Project: https://github.com/Tencent/wepy/tree/1.7.x/packages/wepy-redux
// Definitions by: Jiayu Liu <https://github.com/Jimexist>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import wepy from "wepy";
import { Store } from "redux";
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;