DEV Community

Discussion on: You can’t run away from runtime errors using TypeScript

Collapse
 
miguelo0098 profile image
Miguelo Ramírez

Oops! Thanks for noticing that 😅

Collapse
 
oculus42 profile image
Samuel Rouse

I didn't think about that typeof returning 'object' for Dates! We should be able to use data.birthDate instanceof Date for this. 😬