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