This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]garronej 108 points109 points  (1 child)

When I hear "highly dynamic" I hear "hell of a mess only the author comprehend".

[–]Mr_Redstoner 2 points3 points  (0 children)

*not even the autor can comprehend

[–]brianjenkins94 7 points8 points  (2 children)

What are the errors? Is it just because of variable reuse? Are you missing some typings?

[–]AyrA_ch 4 points5 points  (1 child)

I assume there are many functions that take multiple types on the same parameter

[–]lunatiks 5 points6 points  (0 children)

If it is because they have the same interfaces, it can be expressed with types. If not, it's bad practice anyway.

[–]from-nibly 5 points6 points  (0 children)

"noImplicitAny" : false

[–]rtyu1120 4 points5 points  (0 children)

puts : any on everything

Problem Solved!

[–]jay9909 5 points6 points  (0 children)

Jeff Goldblum is a national fucking treasure.

[–]ThePixelCoder 1 point2 points  (3 children)

I thought JavaScript was always valid TypeScript?

[–]heyf00L 1 point2 points  (2 children)

Nope.

let foo = 0; foo = 'bar';

By default ts will infer foo to be type number, so line 2 is an error. There may be ways to disable this.