# writeCsv (@salmonui/core/export-model)

> The writeCsv function of @salmonui/core/export-model: Writes the whole model as one CSV string.

Canonical: https://salmonui.dev/docs/reference/core/export-model/writeCsv

```ts
import { writeCsv } from '@salmonui/core/export-model';
```

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

## Reference

Kind: function

```ts
function writeCsv<Row>(model: ExportModel<Row>, options?: CsvOptions): string;
```

Writes the whole model as one CSV string.
