# DataGridExportWriters (@salmonui/data-grid)

> The DataGridExportWriters interface of @salmonui/data-grid: On-demand Excel and PDF writer modules. Pass dynamic imports so the writers stay out of the initial bundle: excel loads the xlsx subpath and pdf the pdf subpath of the

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridExportWriters

```ts
import type { DataGridExportWriters } from '@salmonui/data-grid';
```

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

## Reference

Kind: interface

```ts
interface DataGridExportWriters {
    readonly excel?: () => Promise<{
        readonly exportXlsx: WriterFn;
    }>;
    readonly pdf?: () => Promise<{
        readonly exportPdf: WriterFn;
    }>;
}
```

On-demand Excel and PDF writer modules. Pass dynamic imports so the writers
stay out of the initial bundle: `excel` loads the `xlsx` subpath and
`pdf` the `pdf` subpath of the

- `@salmonui` /export package (docs: Export).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `excel` | `readonly excel?: () => Promise<{     readonly exportXlsx: WriterFn; }>;` | optional |  |
| `pdf` | `readonly pdf?: () => Promise<{     readonly exportPdf: WriterFn; }>;` | optional |  |
