Types
Utility-Types for micro-db
MicroDBOptions
MicroDBOptions
property
type
fileName
string
defaultData
MicroDBData
| undefined
serializer
MicroDBSerializer
janitorCronjob
string | undefined
lazy
boolean
MicroDBData
MicroDBData
Type: Record<string, any>
WherePredicate<T>
WherePredicate<T>
Type: (object:
MicroDBEntry<T>
) => boolean
Where-Predicates must be synchronous
Mutation<A, B>
Mutation<A, B>
Type: (object: A, id: string) => B | void | Promise<B | void>
MicroDBEntry<T>
MicroDBEntry<T>
Constraints: T extends {}
Type: T & { _microdbId: string }
SubscriptionCallback<Value, ExtraArguments>
SubscriptionCallback<Value, ExtraArguments>
Type: (value: Value, extraArguments: ExtraArguments, subscription: Subscription) => void
SubscriptionOptions<T>
SubscriptionOptions<T>
property
type
predicate
(newValue: T, lastValue: T | undefined) => boolean
callImmediate
boolean
Last updated