UNPKG

typia

Version:

Superfast runtime validators with only one line

13 lines (11 loc) 292 B
const _httpParameterReadBigint = (value) => value !== "null" ? toBigint(value) : null; const toBigint = (str) => { try { return BigInt(str); } catch { return str; } }; export { _httpParameterReadBigint }; //# sourceMappingURL=_httpParameterReadBigint.mjs.map