UNPKG

@gecut/utilities

Version:

The ultimate utility toolkit from Gecut Company, crafted with TypeScript for optimal speed and efficiency. Designed to boost productivity with a suite of fast and optimized tools.

8 lines (7 loc) 365 B
import type {ArrowFunction} from '@gecut/types'; export type StateManager<STATE_KEYS extends string = string, STATE_FUNC_RETURN = unknown> = Record< STATE_KEYS, ArrowFunction<STATE_FUNC_RETURN> >; export declare function stateManager<T extends StateManager, S extends keyof T>(states: T, state: S): ReturnType<T[S]>; //# sourceMappingURL=state-manager.d.ts.map