View as Markdown

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.

ExportStream members (4)
NameSignatureDescription
fileNamereadonly fileName: string;
mimeTypereadonly mimeType: string;
headersreadonly headers: Readonly<Record<string, string>>;
chunksreadonly chunks: AsyncIterable<Uint8Array>;