| 5 | } from '../vanilla.ts' |
| 6 | |
| 7 | export interface StateStorage<R = unknown> { |
| 8 | getItem: (name: string) => string | null | Promise<string | null> |
| 9 | setItem: (name: string, value: string) => R |
| 10 | removeItem: (name: string) => R |
| 11 | } |
| 12 | |
| 13 | export type StorageValue<S> = { |
| 14 | state: S |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…