Skip to content

ovidiuch/gen-flow-libdefs

Repository files navigation

gen-flow-libdefs

WARNING: Highly experimental proof of concept!

Automatically generate Flow libdefs from source code

Why?

Flow types are not supported by all library consumers, so we strip them when we compile a library and publish it on npm. But some consumers are interested in Flow types. So we publish additional libdefs, either via flow-typed or .js.flow files (I prefer the latter). But composing these library definitions entails duplication: Handpicking the already-defined types of the exported APIs to derive a Flow interface. Can this be automated?

Context:

About

Automatically generate Flow libdefs from source code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published