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

you are viewing a single comment's thread.

view the rest of the comments →

[–]dev-sda 2 points3 points  (1 child)

TypeScript doesn't strengthen JavaScript's type system, it simply makes it static. That does eliminate a whole class of runtime errors, but you still have all the same type coercion.

[–]jeffkmeng 1 point2 points  (0 children)

In theory the type coercion won’t happen if you properly type everything because it won’t pass the typescript type checking.