Type alias SingleObservationHandler

SingleObservationHandler: ((document: Document | null, event: SingleDocumentLiveQueryEvent, signalNext?: (() => void)) => void | Promise<void>)

Type declaration

    • (document: Document | null, event: SingleDocumentLiveQueryEvent, signalNext?: (() => void)): void | Promise<void>
    • The closure that is called whenever a single documunent covered by a live query changes.

      Parameters

      Returns void | Promise<void>