UNPKG

@plq/use-persisted-state

Version:
3 lines 226 B
export type UsePersistedState<T> = [T, (value: T | ((previousState: T) => T)) => void | Promise<void>]; export type PersistedState = <T>(key: string, initialValue: T) => UsePersistedState<T>; //# sourceMappingURL=hook.d.ts.map