2020-04-04 05:39:53 +00:00
|
|
|
// noinspection ES6UnusedImports
|
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' {
|
|
|
|
export function useStoreState<Result>(
|
2020-04-10 19:41:08 +00:00
|
|
|
mapState: (state: State<ApplicationStore>) => Result,
|
|
|
|
): Result;
|
|
|
|
|
|
|
|
export function useStoreActions<Result>(
|
|
|
|
mapActions: (actions: Actions<ApplicationStore>) => Result,
|
2020-04-04 05:39:53 +00:00
|
|
|
): Result;
|
|
|
|
}
|