UNPKG

zs-control

Version:

State management inspired by Zustand with strong TypeScript typing.

8 lines (6 loc) 247 B
// Type do state inicial export type StateCreator<T> = () => T; export type SetFunction<T> = ( update: (state: Partial<T>) => void ) => Record<string, any>; export type StorageType = "localStorage" | "cookieStorage" | "passwordStorage";