Files
EpicNext-Cms/src/lib/form-data.ts
T
openhands df38dccbf1
Local Build and Deploy / deploy (push) Failing after 46s
style: format code biome
2026-07-13 21:57:41 +02:00

10 lines
248 B
TypeScript

import { positiveBigInt } from "@/lib/api";
export function formPositiveBigInt(
formData: FormData,
field: string,
): bigint | null {
const value = formData.get(field);
return typeof value === "string" ? positiveBigInt(value.trim()) : null;
}