UNPKG

@charliethomson/better-session

Version:

### Adds specific and useful typing, and security through obscurity to the browser storage

3 lines (2 loc) 197 B
import { SessionAccessor } from "../session"; export declare const useSession: <T, K extends string>(accessor: SessionAccessor<K, T>, refreshIntervalMs?: number) => [T | null, (value: T) => void];