UNPKG

zs-control

Version:

State management inspired by Zustand with strong TypeScript typing.

4 lines (3 loc) 210 B
export type StateCreator<T> = () => T; export type SetFunction<T> = (update: (state: Partial<T>) => void) => Record<string, any>; export type StorageType = "localStorage" | "cookieStorage" | "passwordStorage";