View as Markdown

API reference: @salmonui/data/storage

createMemoryStorefunction

import { createMemoryStore } from '@salmonui/data/storage';

Also exported from @salmonui/data.

function createMemoryStore(map?: Map<string, string>): KeyValueStore;

Wraps a Map as a KeyValueStore (tests, SSR).