Where to put flow related libdefs?
See original GitHub issueOkay, so I was working on a formatter for flow --json
output and was writing types for the resulting JSON object, which I have the feeling would be useful for other stuff as well.
Now I am not sure where I should put em’. Would it make sense to create a definitions/flow
directive, which could also later be used for internal flow libs for older node
versions etc?
Or should I write the definitions as a npm/something
which basically is not imported, but only pollutes the global scope? (which also doesn’t make any sense)
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Library Definitions | Flow
We recommend checking out the flow-typed tool and repository , which helps you quickly find and install pre-existing libdefs for your third-party dependencies....
Read more >Flow libdefs for libraries with deeper paths - Stack Overflow
I'm testing out Flow for typing our JavaScript, and I want to create a libdef for an internal library. It's imported like this:...
Read more >Example usage of importing libdef type · Issue #438 - GitHub
Add folder with libdefs to libs section in your .flowconfig: [libs] ./flow-typed ... First this is not related to flow-typed but Flow core....
Read more >flow-typed | Yarn - Package Manager
Update flow-bin version to latest version (#4153) · install will also install lib defs of dependencies that ship with library (#4143) · Only...
Read more >flow-typed-with-use-cache-until - npm package - Snyk
All you have to do when you add one or more new dependencies to your project is run flow-typed install . This will...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
But yea, I generally think the RFC PR can include all of these types in its interface
I put these definitions into the recently merged flow/npm-flow-lib package… issue closed.