Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opaque type aliases are not converted to runtime representations. #209

Open
2 of 10 tasks
ClaireNeveu opened this issue Jun 21, 2018 · 4 comments
Open
2 of 10 tasks

Comments

@ClaireNeveu
Copy link

This is a:

  • Bug Report
  • Feature Request
  • Question
  • Other

Which concerns:

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

The following input results in no output from babel.

opaque type Foo = string

What is the expected behaviour?

It should result in the following code (maybe with a marker for opaqueness)

const Bar = _flowRuntime2.default.type('Bar', _flowRuntime2.default.string());

Which package versions are you using?

"flow-runtime": "^0.17.0",
"babel-plugin-flow-runtime": "^0.17.0"
@jmarceli
Copy link

jmarceli commented Oct 3, 2018

I'm having the exact same problem. As soon as I define some opaque type I'm getting flow-runtime: Cannot resolve type: MyOpaqueTypename error.

@yanndebelgique
Copy link

I would love to have this fixed

@gajus
Copy link
Owner

gajus commented Nov 16, 2019

I have spent tons of time rewriting flow-runtime, and then lost all my work when I lost my laptop. So... a bit of a bummer that was.

I will get back to working on this sometime in a not too distant future. Meanwhile, any PRs I will make sure to close/ release quickly.

@yanndebelgique
Copy link

yanndebelgique commented Nov 18, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants