# CsvStreamOptions (@salmonui/data-grid/engine/export)

> The CsvStreamOptions interface of @salmonui/data-grid/engine/export.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-export/CsvStreamOptions

```ts
import type { CsvStreamOptions } from '@salmonui/data-grid/engine/export';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-export (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-export.md).

## Reference

Kind: interface

```ts
interface CsvStreamOptions extends CsvOptions {
    readonly chunkRows?: number;
    readonly sliceMs?: number;
    readonly yield?: () => Promise<void>;
}
```

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `chunkRows` | `readonly chunkRows?: number;` | optional | Upper bound of rows per chunk. Default 5,000. |
| `sliceMs` | `readonly sliceMs?: number;` | optional | Time slice per chunk in ms; a chunk ends early when it runs longer. Default 25. |
| `yield` | `readonly yield?: () => Promise<void>;` | optional | Awaited between chunks. Default: a macrotask (`setTimeout(0)`) when available, else a resolved promise. |
| `delimiter` | `delimiter?: string;` | optional, inherited | Default `,`. |
| `lineBreak` | `lineBreak?: string;` | optional, inherited | Default `\r\n` (RFC 4180). |
| `includeHeaders` | `includeHeaders?: boolean;` | optional, inherited | Header line with the leaf header texts. Default true. |
| `values` | `values?: "formatted" \| "raw";` | optional, inherited | `formatted` (default): the column display text. `raw`: numbers and booleans as is, dates as ISO 8601. |
| `aggregateRows` | `aggregateRows?: boolean;` | optional, inherited | Group caption, group footer, and grid footer aggregate lines. Default true. |
| `bom` | `bom?: boolean;` | optional, inherited | Prefix a UTF-8 byte order mark (Excel detects UTF-8). Default false. |
| `quoteAll` | `quoteAll?: boolean;` | optional, inherited | Quote every field instead of only those that need it. Default false. |
| `escapeFormulas` | `escapeFormulas?: boolean;` | optional, inherited | Neutralize spreadsheet formulas in text cells: a leading `'` on tab, CR, or `=`, `+`, `-`, `@` after optional whitespace. Real numbers are kept. Default true; `false` writes raw text. |
| `treeDepthColumn` | `treeDepthColumn?: string \| boolean;` | optional, inherited | Tree mode: a leading column with each row's tree depth (0 for roots). `true` names it `Depth`; a string is the header text. Ignored outside tree mode. |
