API REFERENCE

GanttStreamSource

The GanttStreamSource type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface GanttStreamSource {
  readonly length:number;
  readonly capacity:number;
  readonly dropped:number;
  push(task:GanttTaskInput):void;
  pushBatch(tasks:ReadonlyArray<GanttTaskInput>):void;
  shift(count:number):void;
  replace(tasks:ReadonlyArray<GanttTaskInput>):void;
  snapshot():GanttDeclaration[];
  subscribe(listener:(event:GanttStreamEvent)=>void):()=>void;
}