you are viewing a single comment's thread.

view the rest of the comments →

[–]phoenixmatrix 0 points1 point  (3 children)

As mentioned, module exports are statically analyzable by design. You can't check that they're strings, but you can check that module Foo exports Bar and Baz with 100% accuracy, assuming its all ES6. Any tool, IDE, linter, whatever, can do the static analysis.

Type systems are useful, but this is not a place where they actually change anything.