codemix / babel-plugin-typecheck

Static and runtime type checking for JavaScript in the form of a Babel plugin.
MIT License
886 stars 44 forks source link

Refactor #45

Closed phpnode closed 7 years ago

phpnode commented 9 years ago

The rewrite for 3.0.0 ended up growing in scope much more than I originally planned so now the code is a terrible mess. This issue is a reminder to clean it up!

phpnode commented 8 years ago

Some notes for when I get around to this:

  1. Separate the type inference stuff into a separate module or try and get it into babel-traverse.
  2. Add a number of modes, so that we can optionally warn instead of throwing.
  3. Add optional warnings for unsupported features (re: #34)
  4. Figure out how to safely check polymorphic functions.