Skip to main content

Function: warnBigint()

warnBigint(surface, column): void

Defined in: src/core/int64.ts:249

bigintWarning, emitted: a process warning in Node, console.warn elsewhere (the playground).

Parameters​

surface​

string

The surface name shown in the message.

column​

string

The non-id column holding integers beyond Number.MAX_SAFE_INTEGER.

Returns​

void

Nothing.

Remarks​

Once per (surface, column) per process (a repeat call is a no-op). In Node the warning carries { code: INT64_WARNING_CODE } ("SDV_INT64"), so process.on("warning", (w) => w.code === "SDV_INT64") can filter it; where process.emitWarning is absent it falls back to console.warn.

Example​

import { warnBigint } from "./int64.js";
warnBigint("Savant CSV", "big"); // emits once
warnBigint("Savant CSV", "big"); // silent