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

1.4.7 • Public • Published

Installation

npm install --save @types/tinajs__tina-redux

Summary

This package contains type definitions for @tinajs/tina-redux (https://github.com/tinajs/tina-redux).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tinajs__tina-redux.

index.d.ts

import { Action, Dispatch, Store } from "redux";

type MapStateToProps = (state: any) => any;
type mapDispatchToProps = (dispatch: Dispatch) => any;

interface HOC {
    onLoad: () => void;
    onUnload: () => void;
    methods: object;
}

declare class TinaRedux<S, A extends Action> {
    constructor(reduxStore: Store<S, A>);
    connect(mapState?: MapStateToProps, mapDispatch?: mapDispatchToProps): HOC;
}

export = TinaRedux;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: redux

Credits

These definitions were written by Jiayu Liu.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/tinajs__tina-redux

Weekly Downloads

1

Version

1.4.7

License

MIT

Unpacked Size

3.53 kB

Total Files

5

Last publish

Collaborators

  • types