Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/forbeslindesay/tsgen
https://github.com/forbeslindesay/tsgen
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/forbeslindesay/tsgen
- Owner: ForbesLindesay
- License: mit
- Created: 2017-07-03T01:53:05.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T09:21:48.000Z (almost 2 years ago)
- Last Synced: 2024-10-20T04:40:43.098Z (24 days ago)
- Language: TypeScript
- Size: 817 KB
- Stars: 40
- Watchers: 4
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# tsgen
Convert flow types to typescript types, automatically
[![Build Status](https://img.shields.io/travis/ForbesLindesay/tsgen/master.svg)](https://travis-ci.org/ForbesLindesay/tsgen)
[![Dependency Status](https://img.shields.io/david/ForbesLindesay/tsgen/master.svg)](http://david-dm.org/ForbesLindesay/tsgen)
[![NPM version](https://img.shields.io/npm/v/tsgen.svg)](https://www.npmjs.org/package/tsgen)## Installation
```
npm install tsgen --save-dev
```## Usage
```
tsgen "lib/**/*.js.flow" --ignore "lib/internal-modules/**/*.js.flow"
```If you're using `export default foo;` style for exports in flow, but compiling that to `module.exports = ` style CommonJS exports, you will also need to pass in `--common-js-default-export`.
## License
MIT