@renewx/core
Version:
Lightweight state management library with validation support
6 lines (5 loc) • 413 B
TypeScript
import type { AnyActionStore } from "../types/any-store";
import type { Actions, StoreActions } from "../types/actions";
import type { Action, ActionFn } from "../types/action";
export declare const action: Action;
export declare const actions: <Store extends AnyActionStore, ActionsFn extends Record<string, ActionFn<Store>>>(store: Store, actions: ActionsFn) => Actions<Store, ActionsFn> & StoreActions<Store>;