Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/easy-peasy.d.ts
7458 views
1
// noinspection ES6UnusedImports
2
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3
import EasyPeasy, { Actions, State } from 'easy-peasy';
4
import { ApplicationStore } from '@/state';
5
6
declare module 'easy-peasy' {
7
export function useStoreState<Result>(mapState: (state: State<ApplicationStore>) => Result): Result;
8
9
export function useStoreActions<Result>(mapActions: (actions: Actions<ApplicationStore>) => Result): Result;
10
}
11
12