1.1.0 • Published 1 year ago

@freckle/gen-flow v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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

1.1.0

1 year ago

1.0.0

1 year ago