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

Improve flowtype definition for oneof fields #6

Open
shanshanzhu opened this issue Jan 2, 2019 · 0 comments
Open

Improve flowtype definition for oneof fields #6

shanshanzhu opened this issue Jan 2, 2019 · 0 comments

Comments

@shanshanzhu
Copy link
Collaborator

Currently the generated code defines oneof fields as

type Test = {
  a?: string,
  b?: number,
  c?: boolean
}

This allows setting the oneof fields to multiple keys. See flow example

A better definition is here

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

1 participant