# ThemeRiverStreamSource

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

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

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

## Type declaration

```typescript
export interface ThemeRiverStreamSource {readonly length:number;readonly capacity:number;readonly dropped:number;readonly seriesIds:ReadonlyArray<ThemeRiverId>;push(row:ThemeRiverRow):void;pushBatch(rows:ReadonlyArray<ThemeRiverRow>):void;shift(count:number):void;replace(rows:ReadonlyArray<ThemeRiverRow>):void;setCapacity(capacity:number):void;snapshot():ThemeRiverRow[];subscribe(listener:(event:ThemeRiverStreamEvent)=>void):()=>void}
```

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

## Related types

- [ThemeRiverId](https://chart.syidax.com/docs/types/ThemeRiverId.md)
- [ThemeRiverRow](https://chart.syidax.com/docs/types/ThemeRiverRow.md)
- [ThemeRiverStreamEvent](https://chart.syidax.com/docs/types/ThemeRiverStreamEvent.md)
