you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 8 months ago

Seems like TypeScript could be generating JavaScript code that does these type checks on function entry - with a runtime cost of course.

Is there no such setting, general or conditional toggle on functions or types?

  • source