Socket
Socket
Sign inDemoInstall

flow-typedef

Package Overview
Dependencies
58
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    flow-typedef

get Flow built-in type definition files


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
884 kB
Created
Weekly downloads
 

Readme

Source

Flow Typedef · npm version CircleCI All Contributors PRs Welcome

get Flow built-in type definition files.

Why

Flow Buit-in type definition files are hosted facebook/flow.
If you would like to get those files some reason, you have to manual copy.

Getting Started

I Assume you have experience of flow-typed. Otherwise you might be start from flow-typed.

Install

recommend global install

$ yarn global add flow-typedef

Usage

In the same directory as package.json that flow-bin installed(almost where is project root), execute flow-typedef command. Then typedef files will be generated under the flow-typed/built-in.

# cd your-project-dir
$ flow-typedef

flow-typedef detect your flow-bin version and get same version typedef files.

And more, I reccomend following setting.

// .flowconfig

[ignore]

[include]

[libs]

[lints]

[options]
no_flowlib=true

[strict]

Because Flow built in lib def already there in your /flow-typed.
see option detail https://flow.org/en/docs/config/options/#toc-no-flowlib-boolean

Contributors

Thanks goes to these wonderful people (emoji key):


ryota-murakami

💻 📖 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

Keywords

FAQs

Last updated on 23 Dec 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc