DEV Community

Discussion on: What are some concepts in TypeScript that you'd like to know more about?

Collapse
 
antonfrattaroli profile image
Anton Frattaroli

In the jQuery type, they have .val() returning string | number | string[], and the code I was working with assumed it would always be a string. Impacted field validation code quite a bit.

Maybe I'll write an article on dev.to about the migration.