UNPKG

ionstore

Version:

A very simple isomorphic key-value store with a Map-like API for persisting session data.

14 lines (13 loc) 281 B
type Entry = readonly [ key: string, value: string ]; type Backend = { read(id: string): readonly Entry[]; write(id: string, data: IterableIterator<Entry>): void; }; type Options = { id: string; backend: Backend; }; export type { Entry, Backend, Options };