mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-01 15:03:11 +02:00
Merge main into proxy branch (formatting and docs)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@yaakapp-internal/model-store",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
||||
@@ -19,9 +19,7 @@ function emptyStore<M extends ModelMap>(keys: (keyof M)[]): StoreData<M> {
|
||||
return data;
|
||||
}
|
||||
|
||||
export function createModelStore<M extends ModelMap>(
|
||||
modelTypes: (keyof M & string)[],
|
||||
) {
|
||||
export function createModelStore<M extends ModelMap>(modelTypes: (keyof M & string)[]) {
|
||||
const dataAtom = atom<StoreData<M>>(emptyStore<M>(modelTypes));
|
||||
|
||||
/** Apply a single upsert or delete to the store. */
|
||||
|
||||
Reference in New Issue
Block a user