Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Flow have a library of interfaces similar to DefinitellyTyped in Typescript?

Tags:

flowtype

I am starting with Flow, switching from Typescript. TS contains a large library of interfaces in DefnitellyTyped.

Does flow have a similar kind of library of interfaces? Am searching for a library for React and ReactDOM, Underscore and more.

like image 936
tomitrescak Avatar asked Sep 26 '22 12:09

tomitrescak


1 Answers

It does, now: https://github.com/flowtype/flow-typed

flow-typed is a repository of third-party library interface definitions for use with Flow.

You can grab definitions directly from this GitHub repo, or you can use the CLI (currently in beta) to install a libdef for a given library:

$ npm install -g flow-typed
$ cd /path/to/my/project
$ flow-typed install -f 0.30 [email protected]
like image 61
aluxian Avatar answered Oct 03 '22 13:10

aluxian