runtime-typecheck

v0.1.0
Assert flow type annotations at runtime

runtime-typecheck

A babel plugin and library for converting flow types into runtime type assertions.

Goals:

  • Fastish type assertions on the arguments and return types of all annoted functions
  • Support for generics
  • Support for calling code and providing generic information across module boundaries
  • Fastish compilation
  • Smart type assertions for things like Promises

Non-goals

  • Any sort of static analysis
  • Supporting the entire of the flow type system
  • Supporting flow comments
  • Support for node versions < 5
npm i runtime-typecheck

Metadata

  • MIT
  • Whatever
  • Joe Dytrych
  • released 4/6/2016

Downloads

Maintainers