We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Create dynamic nested enum, with combinate all enum
example:
enum Method { GET = "Get", POST = "Post" } enum Type { API = "Api", DATA = "Data" } enum Message { SUCCESS = "Success", FAILED = "Failed" } enum StatusCode { OK = 200, FAILED = 100 } /// paramater size dynamically function createEnum(...args) { } const d = createEnum(Method, Message, Type, StatusCode) console.log(d.OK.GET.DATA.SUCCESS) { StatusCode : "200", Method : "Get, Type : "Data", Message : "Success" }
The text was updated successfully, but these errors were encountered:
dhianica
When branches are created from issues, their pull requests are automatically linked.
Create dynamic nested enum, with combinate all enum
example:
The text was updated successfully, but these errors were encountered: