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

> The runExport function of @salmonui/core/export-model: Runs one export: onBeforeExport, the model from the source and options, the writer, then onExport. Resolves to null when prevented.

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

```ts
import { runExport } 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 runExport<Row, Data>(format: ExportFormat, source: ExportSource<Row> | readonly ExportSource<Row>[], options: ExportOptions<Row> | undefined, handlers: ExportHandlers<Row, Data>, extension: string, mimeType: string, write: (models: readonly ExportModel<Row>[]) => Promise<Data>): Promise<ExportFile<Data> | null>;
```

Runs one export: `onBeforeExport`, the model from the source and options,
the writer, then `onExport`. Resolves to null when prevented.
