1.0.0-beta6 • Published 5 years ago

@telefonica/ts-to-flow v1.0.0-beta6

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

ts-to-flow

Convert Typescript types to Flow

Install

yarn add --dev @telefonica/ts-to-flow

Usage

Once installed,

yarn ts-to-flow "dist"

Where dist is the directory (relative to the package root) where the .d.ts files are located. It will generate the corresponding .js.flow files.

You can optionally pass a second path:

yarn ts-to-flow "dist" "flow-types"

Where flow-types is a directory (relative to the package root) where the generated .js.flow files will be copied. You can commit this directory in your package so you can see type changes in code reviews.

Additionally if you execute this command in a CI environment, it will throw if this command produces new changes.

Local Development

Below is a list of commands you will probably find useful.

yarn build

Bundles the package to the dist folder. The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).

yarn test

Runs the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.7-beta0

4 years ago

1.1.6-beta1

4 years ago

1.1.1

5 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

5 years ago

1.1.3-beta2

4 years ago

1.1.3-beta1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago

1.1.0-beta1

5 years ago

1.0.1-beta1

5 years ago

1.0.0-beta1

5 years ago

1.0.0-beta10

5 years ago

1.0.0-beta9

5 years ago

1.0.0-beta8

5 years ago

1.0.0-beta6

5 years ago

1.0.0-beta5

5 years ago

1.0.0-beta4

5 years ago

1.0.0-beta2

5 years ago