UNPKG

typia

Version:

Superfast runtime validators with only one line

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