refactor
Open
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
const parseEmployeeFormData = (formData: FormData): Employee => {
return {
first_name: formData.get("firstName") as string,
middle_name: formData.get("middleName") as string,
last_name: formData.get("lastName") as string,
employee_id: formData.get("employeeId") as string,
office_number: formData.get("officeNumber") as string,
notes: formData.get("notes") as string,
}
}
Can I explicitly set return type of this function as Employee
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.