Why does it add stub modules?
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top 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 >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
I’ve just released 2.1.3. --skip does exist now.
@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