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

9 lines (8 loc) 432 B
import type Dependency from './types/Dependency'; import type ReactivityAdapter from './types/ReactivityAdapter'; /** * Creates an ReactivityAdapter based on the given definition. * @param definition - The definition of the ReactivityAdapter. * @returns The created ReactivityAdapter. */ export default function createReactivityAdapter<T extends Dependency = Dependency>(definition: ReactivityAdapter<T>): ReactivityAdapter<T>;