Skip to content

Conversation

felixfbecker
Copy link
Owner

Been thinking about moving the project to TypeScript as I maintain a .d.ts file anyway and the code is so simple it's like maintaining the same file 2 times.

Cannot target ES6 though because Node 4 is missing default and variadic params.

@Strate
Copy link

Strate commented Mar 12, 2017

You can target to es6 and then use babel with "babel-plugin-env" targeting to node4.

@felixfbecker
Copy link
Owner Author

I know, but I don't want to do two-step compilation.

@Strate
Copy link

Strate commented Mar 13, 2017

@felixfbecker what if target to es5?

@thewillhuang
Copy link

graphile/crystal#305 heres an example of typescript targeting es6 now targting es5.

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