export const form = createForm({
fields: {
email: {
init: "", // field's store initial value
rules: [ ... ],
},
password: {
init: "", // field's store initial value
rules: [ ... ],
},
},
validateOn: ["submit"],
})
{
user: {
name: string;
password: string;
},
password: string;
}