Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

flowgen2

forbeslindesay135MIT2.2.2TypeScript support: included

Generate flowtype definition files from TypeScript

readme

Flowgen2

Nothing much works yet, but I plan to expand on this very soon.

Installation

npm install flowgen2

Usage

Add something like the following to your package.json:

  "scripts": {
    "build": "tsc",
    "postbuild": "flowgen \"lib/**/*\""
  }

Then when you run npm run build, you should see .js.flow files along with all your typescript defintions and plain JavaScript files.

License

MIT