MCPcopy Index your code
hub / github.com/flow-typed/flow-typed

github.com/flow-typed/flow-typed @v4.1.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.1.1 ↗ · + Follow
29,669 symbols 54,617 edges 4,981 files 1,756 documented · 6% 17 cross-repo links updated 17d agov4.1.1 · 2025-05-13★ 3,758227 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

flow-typed

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

ci status npm package docs discord package health

[!NOTE]
We want to keep the flow-typed community informed about the current state and future direction of the project. As you might have noticed, our activity has slowed down in recent months. However, we are committed to maintaining the functionality of flow-typed and will continue to fix any issues that arise with new releases of Flow.

While we're not planning any major new features at the moment, we remain open to feature contributions from the community. Our focus remains on ensuring that the existing features work well and that type definitions are kept up to date. We appreciate the value that these contributions bring and encourage anyone interested in enhancing flow-typed to get involved.

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

Extension points exported contracts — how you extend this code

Cancel (Interface)
(no doc) [28 implementers]
definitions/npm/axios_v0.18.x/flow_v0.25.x-v0.74.x/axios_v0.18.x.js
Service (Interface)
(no doc) [1 implementers]
definitions/browser/doubleclick-gpt_150.x.x/flow_v0.51.x-v0.103.x/doubeclick-gpt_150.x.x.js
Animatable (Interface)
(no doc) [1 implementers]
definitions/environments/cssom/flow_v0.261.x-/cssom.js
Story (Interface)
(no doc)
cli/src/lib/npm/__tests__/__npmLibDefs-fixtures__/getInstalledNpmLibDefs/scopedLibDefs/flow-typed/npm/@kadira/storybook_v1.x.x.js
RouterEvents (Interface)
(no doc)
cli/flow-typed/npm/next_v9.x.x.js
Cancel (Interface)
(no doc) [28 implementers]
definitions/npm/axios_v0.18.x/flow_v0.80.x-v0.92.x/axios_v0.18.x.js
Service (Interface)
(no doc) [1 implementers]
definitions/browser/doubleclick-gpt_150.x.x/flow_v0.104.x-/doubeclick-gpt_150.x.x.js
CustomElementRegistry (Interface)
(no doc)
definitions/environments/dom/flow_v0.261.x-/dom.js

Core symbols most depended-on inside this repo

pipe
called by 1708
definitions/npm/mqtt_v4.2.x/flow_v0.84.x-/mqtt_v4.2.x.js
then
called by 1540
definitions/npm/ava_v2.x.x/flow_v0.104.x-/ava_v2.x.x.js
expect
called by 1503
definitions/npm/jest_v29.x.x/flow_v0.201.x-/test_jest_v29.x.x.js
push
called by 1308
definitions/npm/history_v4.x.x/flow_v0.25.x-v0.103.x/history_v4.x.x.js
expect
called by 767
definitions/npm/testcafe_v0.x.x/flow_v0.104.x-v0.200.x/testcafe_v0.x.x.js
log
called by 748
definitions/npm/log4js_v2.x.x/flow_v0.104.x-/log4js_v2.x.x.js
resolve
called by 633
definitions/npm/yup_v0.x.x/flow_v0.104.x-/yup_v0.x.x.js
catch
called by 611
definitions/npm/alasql_v0.3.x/flow_v0.104.x-/alasql_v0.3.x.js

Shape

Class 16,291
Method 6,066
Function 4,813
Interface 2,499

Languages

TypeScript100%

Modules by API surface

definitions/npm/grommet_v1.1.0/flow_v0.71.x-v0.103.x/grommet_v1.1.0.js1,005 symbols
definitions/npm/grommet_v1.1.0/flow_v0.25.x-v0.70.x/grommet_v1.1.0.js1,005 symbols
definitions/npm/grommet_v1.1.0/flow_v0.104.x-/grommet_v1.1.0.js1,005 symbols
definitions/environments/dom/flow_v0.261.x-/dom.js346 symbols
definitions/environments/bom/flow_v0.261.x-/bom.js334 symbols
definitions/npm/sinon_v7.x.x/flow_v0.80.x-/sinon_v7.x.x.js212 symbols
definitions/browser/chromecast-caf-receiver_v3.x.x/flow_v0.25.x-v0.103.x/chromecast-caf-receiver_v3.x.x.js202 symbols
definitions/browser/chromecast-caf-receiver_v3.x.x/flow_v0.104.x-/chromecast-caf-receiver_v3.x.x.js202 symbols
definitions/npm/rsuite_v3.x.x/flow_v0.53.x-v0.103.x/rsuite_v3.x.x.js200 symbols
definitions/npm/rsuite_v3.x.x/flow_v0.201.x-/rsuite_v3.x.x.js200 symbols
definitions/npm/rsuite_v3.x.x/flow_v0.104.x-v0.200.x/rsuite_v3.x.x.js200 symbols
definitions/npm/sinon_v2.x.x/flow_v0.28.x/sinon_v2.x.x.js191 symbols

Dependencies from manifests, versioned

@babel/cli7.16.0 · 1×
@babel/core7.16.0 · 1×
@babel/eslint-parser7.16.3 · 1×
@babel/plugin-syntax-flow7.16.0 · 1×
@babel/plugin-transform-react-jsx7.16.0 · 1×
@babel/preset-env7.16.4 · 1×
@babel/preset-flow7.16.0 · 1×
@octokit/rest18.12.0 · 1×
a* · 1×
babel-eslint10.0.2 · 1×
bar1.0.0 · 1×
c* · 1×

Datastores touched

AdminCollection · 1 repos
(mongodb)Database · 1 repos
dbnameDatabase · 1 repos
(mysql)Database · 1 repos

For agents

$ claude mcp add flow-typed \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page