# SankeyStreamSource

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

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

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

## Type declaration

```typescript
export interface SankeyStreamSource {
  readonly length: number;
  readonly capacity: number;
  readonly dropped: number;
  push(link: SankeyLinkInput): void;
  pushBatch(links: ReadonlyArray<SankeyLinkInput>): void;
  shift(count: number): void;
  replace(links: ReadonlyArray<SankeyLinkInput>): void;
  snapshot(): SankeyLinkInput[];
  subscribe(listener: (event: SankeyStreamEvent) => void): () => void;
}
```

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

## Related types

- [SankeyLinkInput](https://chart.syidax.com/docs/types/SankeyLinkInput.md)
- [SankeyStreamEvent](https://chart.syidax.com/docs/types/SankeyStreamEvent.md)
