# GanttStreamSource

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

Canonical: https://chart.syidax.com/docs/types/GanttStreamSource/

<a id="declaration"></a>

## 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;
}
```

<a id="related"></a>

## Related types

- [GanttTaskInput](https://chart.syidax.com/docs/types/GanttTaskInput.md)
- [GanttDeclaration](https://chart.syidax.com/docs/types/GanttDeclaration.md)
- [GanttStreamEvent](https://chart.syidax.com/docs/types/GanttStreamEvent.md)
