UNPKG

@signaldb/core

Version:

SignalDB is a client-side database that provides a simple MongoDB-like interface to the data with first-class typescript support to achieve an optimistic UI. Data persistence can be achieved by using storage providers that store the data through a JSON in

8 lines (7 loc) 330 B
import type MemoryAdapter from './types/MemoryAdapter'; /** * Creates an MemoryAdapter based on the given definition. * @param definition - The definition of the MemoryAdapter. * @returns The created MemoryAdapter. */ export default function createMemoryAdapter(definition: MemoryAdapter): MemoryAdapter<Record<string, any>>;