UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

4 lines (3 loc) 331 B
import { StorageProperties } from '../use-local-storage/create-storage'; export declare function useSessionStorage<T = string>(props: StorageProperties<T>): [T, (val: T | ((prevState: T) => T)) => void, () => void]; export declare const readSessionStorageValue: <T>({ key, defaultValue, deserialize, }: StorageProperties<T>) => T;