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.

Why does it add stub modules?

See original GitHub issue

When I run this on a react-native project, it generates stub types that basically export “any” for all of my react-native-* dependencies.

These dependencies may or may not have full flow typing, but they do have classes, methods, properties, and more, that should be type-checkable by flow.

I’m worried that the flow-typed auto-generated stubs that export any at a global export level, will override and destroy whatever type information was available/usable. How do you avoid conflicts and wiping out potentially-useful info?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
marudorcommented, Jul 17, 2017

I’ve just released 2.1.3. --skip does exist now.

0reactions
GAntoinecommented, Jul 9, 2017

@mikelambert You can use the bleeding edge of flow-typed globally by running npm install -g flowtype/flow-typed. This will give you access to the --skip flag, and, eventually, the --packageDir flag from #1002, that you reported at #999

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stub - Tutorialspoint
Stubs are used during Top-down integration testing, in order to simulate the behaviour of the lower-level modules that are not yet integrated.
Read more >
How to stub a dependency of a module - Sinon.JS
To stub a dependency (imported module) of a module under test you have to import it explicitly in your test and stub the...
Read more >
Test stub - Wikipedia
Stubs are computer programs that act as temporary replacement for a called basin module and give the same output as the actual product...
Read more >
What is the use of stub files (.pyi ) in python? - Stack Overflow
Stub files contain type-hinting information of normal Python modules. The full official documentation can be found in the section about stub- ...
Read more >
Stub files - mypy 0.991 documentation
Here is an overview of how to create a stub file: Write a stub file for the library (or an arbitrary module) and...
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