UNPKG

typia

Version:

Superfast runtime validators with only one line

13 lines (12 loc) 385 B
//#region src/internal/_httpFormDataReadBigint.ts const _httpFormDataReadBigint = (input) => input instanceof File ? input : !!input?.length ? input === "null" ? null : toBigint(input) : void 0; const toBigint = (str) => { try { return BigInt(str); } catch { return str; } }; //#endregion export { _httpFormDataReadBigint }; //# sourceMappingURL=_httpFormDataReadBigint.mjs.map