mirror of
https://github.com/t8y2/dbx.git
synced 2026-10-26 00:00:51 +00:00
9 lines
313 B
TypeScript
9 lines
313 B
TypeScript
export type CellValue = string | number | boolean | null;
|
|
|
|
export function displayCellValue(value: CellValue): string {
|
|
if (value === null) return "NULL";
|
|
if (typeof value === "boolean") return value ? "true" : "false";
|
|
if (typeof value === "object") return JSON.stringify(value);
|
|
return String(value);
|
|
}
|