curatedcode / applii-tracker

A fully client-side job application tracker with sync support
https://applii.netlify.app/
Other
0 stars 0 forks source link

Add better type safety to db functions #54

Closed curatedcode closed 10 months ago

curatedcode commented 10 months ago

Is your feature request related to a problem? Please describe. db functions such as getApplication and getAllApplications are casting the promises as FullApplicationType instead of validating the data is actually in the correct format

Describe the solution you'd like Update all the functions in db that are casting that FullApplicationType to use a zod schema to parse and validate them

Describe alternatives you've considered None

Additional context None