ExportMode
Controls how cell values are produced for export.
-
'raw'— underlying values straight from the row (i.e. whatresolveCellValuereturns). No display formatting applied. Use when you want underlying typed values (Dates stay Dates, numbers stay numbers) — ideal for handing rows to a third-party serializer. This matches the behavior of today’sexportCsv/exportExcel/exportJson. -
'formatted'— applies display formatting where available: column-type default formatter →column.format(value, row). When a format function is found the result is coerced tostring(the same string the cell renders); for typed columns without a customformatthe value may stay typed (e.g. boolean columns coerce totrue/false, date columns useformatDateValue).processCellruns last and may return any type, so the final cell value isprocessCell(formattedValue, ...)when one is provided.
Default: 'raw' — preserves current export behavior exactly. Opt in to
displayed values per call with { mode: 'formatted' }.
type ExportMode = "raw" | "formatted"