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

Target compiler to es2017 #5

Open
Ron537 opened this issue Dec 30, 2018 · 0 comments
Open

Target compiler to es2017 #5

Ron537 opened this issue Dec 30, 2018 · 0 comments

Comments

@Ron537
Copy link
Contributor

Ron537 commented Dec 30, 2018

enum: (<any>Object).values(ReactionType),

Instead of casting Object to any and using values function on it,
you can target typescript to es2017 and Object.values will be available to use.

{
   "compilerOptions": {
        "target": "es2017",
        ...
   }
}
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