Plus the undefined name 'number' in foo(). TypeScript flags that along with 'baz();'.
What does puzzle me is that TS doesn't flag 'return bar(someNumber) + bar;' - I'm curious if anyone knows why it seems to allow that.
What does puzzle me is that TS doesn't flag 'return bar(someNumber) + bar;' - I'm curious if anyone knows why it seems to allow that.
Don't forget JavaScript (and therefore typescript) will let you concatenate a lot of random types together without error.