API reference: @salmonui/data-grid/engine/export-server
ExportStreaminterface
import type { ExportStream } from '@salmonui/data-grid/engine/export-server';interface ExportStream {
readonly fileName: string;
readonly mimeType: string;
readonly headers: Readonly<Record<string, string>>;
readonly chunks: AsyncIterable<Uint8Array>;
}
A started export: name, type, download headers, and the bytes as an async iterable.
| Name | Signature | Description |
|---|---|---|
fileName | readonly fileName: string; | |
mimeType | readonly mimeType: string; | |
headers | readonly headers: Readonly<Record<string, string>>; | |
chunks | readonly chunks: AsyncIterable<Uint8Array>; |