gajus / gajus/flow-runtime

Opaque type aliases are not converted to runtime representations.

Open
#209 4 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
797
Forks
49
PR merge metrics
No merged PRs in 30d

Description

This is a:

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

Which concerns:

- [ ] flow-runtime
- [x] 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.
```javascript
opaque type Foo = string
```

---

### What is the expected behaviour?
It should result in the following code (maybe with a marker for opaqueness)
```javascript
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"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.