user: {
additionalFields: {
birthday: { type: 'string', default: null },
dob: { type: 'date', default: null },
},
},await updateUser({
birthday: values.birthday?.toISOString(),
dob: values.birthday && values.birthday,
})Type 'Date | undefined' is not assignable to type 'undefined'. (dob field)