DEV Community

Discussion on: My confusions about TypeScript

Collapse
 
jwp profile image
John Peters • Edited

Change the string or string[] returns to type of any. To fix complaints. Just put in checks when used.

Collapse
 
jdforsythe profile image
Jeremy Forsythe

We disallow type any in our code. It removes any benefits you get from using a typed language