Answers for "Type 'boolean' is not comparable to type 'number'.ts(2678)"

0

Type 'boolean' is not comparable to type 'number'.ts(2678)

You should be using if/else statements instead. Note that your switch/case code does not have a default return, which will throw an error anyway: you will need to catch causes where value <= 1 and value >= 259200 anyway:
Posted by: Guest on March-31-2022

Code answers related to "Type 'boolean' is not comparable to type 'number'.ts(2678)"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language