question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where to put flow related libdefs?

See original GitHub issue

Okay, 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:closed
  • Created 7 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
jeffmocommented, Aug 5, 2016

But yea, I generally think the RFC PR can include all of these types in its interface

0reactions
ryyppycommented, Aug 16, 2016

I put these definitions into the recently merged flow/npm-flow-lib package… issue closed.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found