Add missing file

This commit is contained in:
Max Goodhart
2025-06-14 19:55:25 +00:00
parent 592f547607
commit ca4f14d21c

View File

@@ -0,0 +1,17 @@
import type { Low } from 'lowdb'
import { JSONFilePreset } from 'lowdb/node'
export interface StreamwallStoredData {
stateDoc: string
}
const defaultData: StreamwallStoredData = {
stateDoc: '',
}
export type StorageDB = Low<StreamwallStoredData>
export async function loadStorage(dbPath: string) {
const db = await JSONFilePreset<StreamwallStoredData>(dbPath, defaultData)
return db
}