UNPKG

spud-framework

Version:

Spud framework is a lightweight, strongly-typed, and declarative way to minimize boilerplate while using [thunks](https://github.com/reduxjs/redux-thunk) with [redux](https://react-redux.js.org/) for asynchronous actions, implemented as a [hook](https://r

3 lines (2 loc) 281 B
import { AsyncReducerState, ThunkActions, ActionSchemaProps } from './types'; export declare const useThunks: <T extends string, A, D, N, ASP extends ActionSchemaProps<N, T, A, D>, TA extends ThunkActions<ASP, N, T, A, D>, ARS extends AsyncReducerState<T, D>>(actions: ASP) => TA;