UNPKG

neuro-store

Version:
9 lines (8 loc) 257 B
declare function asyncThunk<T>(type: string, asyncFn: (arg: T, thunkAPI: { dispatch: any; }) => Promise<any>): ((arg: T) => (dispatch: any) => Promise<any>) & { pending: string; fulfilled: string; rejected: string; }; export { asyncThunk };