@freckle/gen-flow
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@freckle/gen-flow

Generate Flow type interfaces from TypeScript interfaces.

Install

yarn add -D @freckle/gen-flow

Usage

Generate Flow interfaces given a path containing TypeScript interfaces (.d.ts files). The Flow interfaces will be adjacent to the TypeScript interfaces.

> ls dist/
index.d.ts index.js

> yarn run gen-flow dist

> ls dist/
index.d.ts index.js index.js.flow

This can be used as part of a build process in a project:

{
  "name": "my-package",
  "scripts": {
    "build": "yarn clean && tsc -d && yarn gen-flow",
    "gen-flow": "gen-flow dist",
    "clean": "rm -r -f dist/""
  }
}

Versioning and release process##

See RELEASE.md


LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i @freckle/gen-flow

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

2.24 MB

Total Files

27

Last publish

Collaborators

  • luckysoni
  • z0isch
  • stackptr
  • carlos-cubas
  • freckle-engineering