MCPcopy
hub / github.com/pmndrs/zustand / StateStorage

Interface StateStorage

src/middleware/persist.ts:7–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5} from '../vanilla.ts'
6
7export 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
13export type StorageValue<S> = {
14 state: S

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…