UNPKG

@magnetarjs/plugin-simple-store

Version:
15 lines (14 loc) 477 B
import type { Clauses, MagnetarPlugin } from '@magnetarjs/types'; export type SimpleStoreOptions = { generateRandomId: () => string; }; export type SimpleStoreModuleConfig = { path?: string; initialData?: { [key: string]: unknown; } | [string, { [key: string]: unknown; }][]; } & Clauses; export type MakeRestoreBackup = (collectionPath: string, docId: string) => void; export declare const CreatePlugin: MagnetarPlugin<SimpleStoreOptions>;