A cell's persisted input: a literal, a cross-reference, or a formula.
References resolve through the store's reference graph; formulas resolve in
the WASM calculation engine.
Package
@sheetwrite/core
Source
packages/core/src/types/cell.ts#L80
Variants 3
{ kind: "literal"; value: CellScalartype CellScalar = string | number | boolean | null;typeCellScalar=string|number|boolean|null;typeCellScalar=|string|number|boolean|null;A scalar that can be displayed directly.API reference → }
{ kind: "ref"; target: CellAddressinterface CellAddress {
sheet: SheetId;
row: number;
col: number;
}interfaceCellAddress {sheet:SheetId;row:number;col:number;}interfaceCellAddress {sheet:SheetId;row:number;col:number;}Zero-based address of one cell on a stable sheet ID.API reference → }
{ kind: "formula"; src: string }
Declaration
View full TypeScript declaration
exporttypeCellValue=
| {
kind:"literal";
value:CellScalartype CellScalar = string | number | boolean | null;typeCellScalar=string|number|boolean|null;typeCellScalar=|string|number|boolean|null;A scalar that can be displayed directly.API reference →;
}
| {
kind:"ref";
target:CellAddressinterface CellAddress {
sheet: SheetId;
row: number;
col: number;
}interfaceCellAddress {sheet:SheetId;row:number;col:number;}interfaceCellAddress {sheet:SheetId;row:number;col:number;}Zero-based address of one cell on a stable sheet ID.API reference →;