flow-typed
A repository of high quality flow type definitions
Last updated a year ago by gantoine .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install flow-typed 
SYNC missed versions from official npm registry.

flow-typed

A repository of high-quality, third-party library type definitions for use with Flow.

ci status npm package docs discord package health


⚠️ Version 4.0 will release soon! ⚠️

And with it comes new features, most notably the support for definition dependencies.

Learn how to add dependencies to a definition from the main branch docs which can be consumed with the v4 CLI.

$ yarn global add flow-typed@next
# or
$ npm install -g flow-typed@next

What's happening to master?

Nothing for the most part! CLI versions < v4 will still pull definitions from master so if you have library definitions that don't require dependencies we still recommend you contribute to master and it'll get periodically synced back to main for users >= v4.

Eventually we will deprecate master in favour of main.


Check out the quick start page in the docs to get started. It will walk you through installing typedefs, using them, as well as writing and including your own.

Huh?

When you start a project with Flow, you likely want to use some third-party libraries that were not written with Flow. By default, Flow will just ignore these libraries leaving them untyped. As a result, Flow can't give errors if you accidentally mis-use the library (nor will it be able to auto-complete the library).

To address this, Flow supports library definitions which allow you to describe the interface of a module or library separate from the implementation of that module/library.

The flow-typed repo is a collection of high-quality library definitions, tests to ensure that definitions remain high quality, and tooling to make it as easy as possible to import them into your project.

All you have to do when you add one or more new dependencies to your project is run flow-typed install. This will search the libdef repo and download all the libdefs that are relevant for your project and install them for you. After that, simply check them in and be on your way!

The CLI

The flow-typed npm package provides a CLI that includes several commands for working with this repository. The full list of commands is available in the docs .

FAQs

Before opening an issue, take a look at the FAQs. Chances are your question has already been answered! If not, don't hesitate to open an issue.

How Do I Contribute Library Definitions?

Just send a pull request! The documentation highlighted in CONTRIBUTING.md should give a detailed overview of how to raise a pull request following our best practices.

Contributing to the CLI

Bugfixes and improvements to the core CLI are welcome. If you'd like to contribute a new feature, consider opening an issue first to discuss it.

Active Maintenance Team

Andrew Smith Brian Chen Georges-Antoine Assi Pascal Duez Ville Saukkonen
@AndrewSouthpaw @Brianzchen @GAntoine @pascalduez @villesau

Current Tags

  • 4.0.0                                ...           latest (6 months ago)
  • 4.0.0-4                                ...           next (a year ago)
  • 3.8.0-1                                ...           rc (3 years ago)

52 Versions

  • 4.0.0                                ...           6 months ago
  • 4.0.0-4                                ...           a year ago
  • 4.0.0-3                                ...           a year ago
  • 3.9.0                                ...           a year ago
  • 4.0.0-2                                ...           2 years ago
  • 4.0.0-1                                ...           2 years ago
  • 4.0.0-0                                ...           2 years ago
  • 3.8.0                                ...           2 years ago
  • 3.8.0-1                                ...           3 years ago
  • 3.8.0-0                                ...           3 years ago
  • 3.7.0                                ...           3 years ago
  • 3.6.1                                ...           3 years ago
  • 3.6.0                                ...           3 years ago
  • 3.5.0                                ...           3 years ago
  • 3.4.0                                ...           3 years ago
  • 3.3.1                                ...           4 years ago
  • 3.3.0                                ...           4 years ago
  • 3.2.1                                ...           4 years ago
  • 3.2.0                                ...           4 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.6.2                                ...           5 years ago
  • 2.6.1                                ...           5 years ago
  • 2.6.0                                ...           5 years ago
  • 2.5.2                                ...           6 years ago
  • 2.5.1                                ...           6 years ago
  • 2.5.0                                ...           6 years ago
  • 2.4.0                                ...           7 years ago
  • 2.3.0                                ...           7 years ago
  • 2.2.3                                ...           7 years ago
  • 2.2.1                                ...           7 years ago
  • 2.2.0                                ...           7 years ago
  • 2.1.5                                ...           7 years ago
  • 2.1.4                                ...           7 years ago
  • 2.1.3                                ...           7 years ago
  • 2.1.2                                ...           8 years ago
  • 2.1.1                                ...           8 years ago
  • 2.1.0                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 2.0.0-beta.11                                ...           8 years ago
  • 2.0.0-beta.10                                ...           8 years ago
  • 2.0.0-beta.9                                ...           8 years ago
  • 2.0.0-beta.8                                ...           8 years ago
  • 2.0.0-beta.7                                ...           8 years ago
  • 2.0.0-beta.6                                ...           8 years ago
  • 2.0.0-beta.5                                ...           8 years ago
  • 2.0.0-beta.4                                ...           8 years ago
  • 2.0.0-beta.3                                ...           8 years ago
  • 2.0.0-beta.2                                ...           8 years ago
  • 2.0.0-beta.1                                ...           8 years ago
  • 2.0.0-beta.0                                ...           8 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (2)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (17)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE