modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface StreamingCellInput

    A cell value for the streaming writer.

    StreamingXlsxWriter.writeRow validates every cell before writing anything and throws a ModernXlsxError for invalid input:

    • INVALID_CELL_VALUE: a 'number' value (also the default type) that is not a finite number (including '' and text with cellType omitted), a 'boolean' value other than true/false (any case), 1 or 0, an 'error' value that does not start with #, or any 'formulaStr' cell.
    • INVALID_CELL_REF: a cell past column XFD (the 16,385th) or a row past 1,048,576.
    • JSON: a cell the WASM bridge cannot deserialize, such as a cellType outside CellType.
    interface StreamingCellInput {
        cellType?: CellType;
        style?: number;
        value?: string | null;
    }
    Index
    cellType?: CellType

    Cell type. Defaults to 'number' when omitted. A 'stub' is written as an empty cell (its value is ignored); a stub without a value is written only when it carries a style. 'error' is written as a real error cell, 'inlineStr' as an inline string. 'formulaStr' is not supported and throws.

    style?: number

    Style index (0-based, indexes into the cellXfs array).

    value?: string | null

    Cell value as a string. Omit or set to undefined/null to skip the cell (except a 'stub' with a style, which is still written).