Skip to content
Shapemetry

@huukhanhnguyen/types / evaluate/table

evaluate/table

ColumnMeta

ColumnMeta = { computed?: boolean; format?: string; key: string; label?: string; type?: string; }

Table — what evaluateTableChain produces. The authoring tables[] lane (TableChain) stays in the model document schema.

computed?

optional computed?: boolean

True when header value expression is set (computed column).

format?

optional format?: string

key

key: string

label?

optional label?: string

type?

optional type?: string


Table

Table = { columns: ColumnMeta[]; rows: Record<string, unknown>[]; }

columns

columns: ColumnMeta[]

rows

rows: Record<string, unknown>[]


Worksheet

Worksheet = { columns: string[]; name: string; rows: string[][]; }

One named worksheet of string cells — the interchange shape an xlsx/csv writer takes, in that writer's own vocabulary (OOXML stores these under xl/worksheets/). Distinct from Table (typed columns + object rows). Not a file-format option record.

Named Worksheet, not TableSheet: a drawing SHEET is a different concept living in evaluate/sheets.ts, and one word for two unrelated things is the mirror image of two names for one thing.

columns

columns: string[]

name

name: string

rows

rows: string[][]

Last updated: 📖 1 min readEdit on GitHub