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

Allow retrieving list of values from an Enum type #669

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

axelvaindal
Copy link
Contributor

This PR introduce a new function getValues which return every values used to construct the Enum during the declaration process.

This is the implementation of #668.

This commit introduce a new function getValues wich return every values
(numeral or string) used to construct the Enum during the declaration
process.
@lukejagodzinski
Copy link
Member

Thanks! Merging

@lukejagodzinski lukejagodzinski merged commit 86dc6fc into jagi:v2 Apr 2, 2018
@axelvaindal
Copy link
Contributor Author

My pleasure 🙂.

@lukejagodzinski Do you know when the new version of Astronomy is going to be (with this PR included) ?

@lukejagodzinski
Copy link
Member

Probably today or tomorrow, so stay tuned. I will inform you here when the new version is published

@eviatarkhen
Copy link

Installed the package today (it installed 2.5.6) but it looks like the getValues() function, is not recognized: TypeError: UserRole.getValues is not a function.
Was the new version published?

@lukejagodzinski
Copy link
Member

@eviatarkhen sorry forgot to publish the new version. Did it just now. You can update to 2.5.7

@eviatarkhen
Copy link

Thanks, appreciating the fast response.

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

Successfully merging this pull request may close these issues.

3 participants