@quario/xlsx
The spreadsheet render target. Resolves workbook bytes with typed cells.
xlsx(options?)
function xlsx(options?: XlsxOptions): Target<'xlsx', Promise<Uint8Array>>Returns the target. It takes one option, meta. Any other key, or one of the
wrong type, throws a TypeError naming the path. The factory reads meta once
and copies it, so mutating that object between renders no longer changes the
workbook.
XlsxOptions
| Field | Type | Meaning |
|---|---|---|
meta |
XlsxMeta |
Optional document information. |
XlsxMeta
interface XlsxMeta {
title?: string
author?: string
subject?: string
}Never includes dates, so the document model stays deterministic.
This target takes no font mapping. An unmapped family name passes through for
the spreadsheet application to resolve.