API REFERENCE
TilemapStreamSource
The TilemapStreamSource type declaration and related types. Optional fields are marked with ?.
Type declaration
export interface TilemapStreamSource {
push(datum: TilemapDatum): void;
pushBatch(datums: ReadonlyArray<TilemapDatum>): void;
shift(count: number): void;
replace(datums: ReadonlyArray<TilemapDatum>): void;
snapshot(window?: number): TilemapDatum[];
subscribe(listener: (event: TilemapStreamEvent) => void): () => void;
readonly length: number;
}