formParse function is a utility for parsing form data (formData) against a Zod schema (schema). It returns an object indicating success or failure, along with the validated data or field errors.ts
import { formParse } from "@arkyn/server";
FormParseProps: A tuple containing formData and schema.FormParseReturnType: The return type, which can be SuccessResponse or ErrorResponse.SuccessResponse: If the validation was successful. - success: truedata: The validated data.ErrorResponse: If validation fails.success: falsefields: The original fields.fieldErrors: The validation errors per field.