Skip to main content

Type Alias: CollectionSnapshotListener()<T>

type CollectionSnapshotListener<T>: (items, changes) => void;

Listener for collection snapshots: receives the full current array and the diff.

Type Parameters​

Type Parameter
T

Parameters​

ParameterType
itemsT[]
changesDocChange<T>[]

Returns​

void

Defined in​

odin-transcription-service/packages/cortex-typescript-sdk/src/realtime/watch.ts:28