# IcicleStreamSource

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

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

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

## Type declaration

```typescript
export interface IcicleStreamSource {
  readonly length: number;
  readonly capacity: number;
  readonly dropped: number;
  push(node: IcicleNodeInput): void;
  pushBatch(nodes: ReadonlyArray<IcicleNodeInput>): void;
  shift(count: number): void;
  replace(nodes: ReadonlyArray<IcicleNodeInput>): void;
  snapshot(): IcicleNodeInput[];
  subscribe(listener: (event: IcicleStreamEvent) => void): () => void;
}
```

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

## Related types

- [IcicleNodeInput](https://chart.syidax.com/docs/types/IcicleNodeInput.md)
- [IcicleStreamEvent](https://chart.syidax.com/docs/types/IcicleStreamEvent.md)
