UNPKG

rxdb

Version:

A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/

18 lines (17 loc) 667 B
import { Ref } from 'vue'; import type { RxReactivityFactory, ReactivityLambda } from '../../types'; /** * Type-level function (ReactivityLambda) for Vue refs. * Use this as the Reactivity type parameter for properly typed refs. * * @example * const db = await createRxDatabase<MyCollections, any, any, VueRefReactivityLambda>({ * reactivity: VueRxReactivityFactory * }); * const ref = doc.age$$; // Ref<number> */ export interface VueRefReactivityLambda extends ReactivityLambda { readonly _result: Ref<this['_data']>; } export type VueRef<T = any> = Ref<T>; export declare const VueRxReactivityFactory: RxReactivityFactory<VueRefReactivityLambda>;