import {flex} from "./flex.js" import {Schema, SchemaToShape} from "../types.js" import {simpleFlexStorage} from "../flex-storage/simple-flex-storage.js" export function localStorage({ shape, makeTableName, }: { shape: SchemaToShape makeTableName?: (path: string[]) => string }) { return flex({ shape, flexStorage: simpleFlexStorage(window.localStorage), makeTableName, }) }