Password = Comfirm password validator

I may be stupid, but I am just learning arktype and was hoping to implement something like a zod refine.

const passwordForm = z
  .object({
    password: z.string(),
    confirm: z.string(),
  })
  .refine((data) => data.password === data.confirm, {
    message: "Passwords don't match",
    path: ["confirm"], // path of error
  });


Is this possible in arktype?
Was this page helpful?