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

generate string enums for TypeScript kinds #467

Closed
OmarTawfik opened this issue May 16, 2023 · 0 comments · Fixed by #501
Closed

generate string enums for TypeScript kinds #467

OmarTawfik opened this issue May 16, 2023 · 0 comments · Fixed by #501
Assignees

Comments

@OmarTawfik
Copy link
Collaborator

https://napi.rs/docs/concepts/enum#string-enum

For two reasons:

  1. To stabilize enum members when entries are added or modified.
  2. To print these values for debugging/visualization.
@OmarTawfik OmarTawfik added this to the 2️⃣ Beta Preview milestone May 16, 2023
@OmarTawfik OmarTawfik self-assigned this Jun 12, 2023
@OmarTawfik OmarTawfik linked a pull request Jun 12, 2023 that will close this issue
@OmarTawfik OmarTawfik added this to the 1️⃣ Alpha Preview milestone Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant