2020-04-03 22:39:53 -07:00
|
|
|
// noinspection ES6UnusedImports
|
2020-07-04 18:46:09 -07:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
2020-04-10 12:41:08 -07:00
|
|
|
import EasyPeasy, { Actions, State } from 'easy-peasy';
|
2020-04-03 22:39:53 -07:00
|
|
|
import { ApplicationStore } from '@/state';
|
|
|
|
|
|
|
|
declare module 'easy-peasy' {
|
2022-06-26 15:13:52 -04:00
|
|
|
export function useStoreState<Result>(mapState: (state: State<ApplicationStore>) => Result): Result;
|
2020-04-10 12:41:08 -07:00
|
|
|
|
2022-06-26 15:13:52 -04:00
|
|
|
export function useStoreActions<Result>(mapActions: (actions: Actions<ApplicationStore>) => Result): Result;
|
2020-04-03 22:39:53 -07:00
|
|
|
}
|