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