API REFERENCE
CalendarHeatmapStreamSource
The CalendarHeatmapStreamSource type declaration and related types. Optional fields are marked with ?.
Type declaration
export interface CalendarHeatmapStreamSource {
push(entry: CalendarHeatmapEntry): void;
pushBatch(entries: ReadonlyArray<CalendarHeatmapEntry>): void;
shift(count: number): void;
replace(entries: ReadonlyArray<CalendarHeatmapEntry>): void;
snapshot(): CalendarHeatmapEntry[];
latest(): CalendarHeatmapEntry | undefined;
subscribe(listener: (event: CalendarHeatmapStreamEvent) => void): () => void;
readonly length: number;
readonly capacity: number;
readonly dropped: number;
}