Skip to content

API / interfaces / sheet

Interface: Sheet

Base sheet object supporting both sparse and dense storage modes.

In sparse mode, cells are stored as properties keyed by A1 references (e.g. sheet["A1"]). In dense mode, cells are stored in the "!data" 2D array.

Hierarchy

Extended by:

  • WorkSheet

Properties

!data

optional

!data: DenseSheetData

Dense cell storage: 2D array indexed by [row][col]

!type

optional

!type: "sheet" | "chart"

Sheet type: "sheet" for worksheets, "chart" for chart sheets

!ref

optional

!ref: string

Used range reference (e.g. "A1

")

!margins

optional

!margins: MarginInfo

Page margin settings

Source

src/types.ts


← RowInfo | Sheet2CSVOpts →