flow-runtime icon indicating copy to clipboard operation
flow-runtime copied to clipboard

Import types from flow-typed

Open olosegres opened this issue 8 years ago • 6 comments

This is a:

  • [x] Bug Report
  • [ ] Feature Request
  • [ ] Question
  • [ ] Other

Which concerns:

  • [x] flow-runtime
  • [x] babel-plugin-flow-runtime
  • [ ] flow-runtime-validators
  • [ ] flow-runtime-mobx
  • [ ] flow-config-parser
  • [ ] The documentation website

Hi, we declare some our own types in ./project/flow-typed dir, and use that types in code ./project/src. It works perfect with flow, but flow-runtime doesn't import types from all files in flow-typed dir and throws errors about "unfound" types.

olosegres avatar Jul 07 '17 10:07 olosegres

@olosegres did you try using flow-runtime-cli to extract those types?

phpnode avatar Jul 07 '17 14:07 phpnode

@phpnode that cli does not work ... it just outputs empty data - multiple people have been reporting that.

bradennapier avatar Jul 12 '17 04:07 bradennapier

@bradennapier pull requests accepted, I don't have time to work on this lib at the moment

phpnode avatar Jul 12 '17 10:07 phpnode

@phpnode Do you claim that support for automatically importing all types from all files inside the flow-typed folder is there?

olosegres avatar Jul 18 '17 20:07 olosegres

@phpnode Where I can find information about extracting types using flow-runtime-cli?

olosegres avatar Jul 18 '17 20:07 olosegres

Any news on this? There is any way to get the declared flow types?

jorgitoml avatar Apr 24 '20 08:04 jorgitoml