typia
Version:
Superfast runtime validators with only one line
13 lines (12 loc) • 385 B
JavaScript
//#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