node-sql-template-strings
node-sql-template-strings copied to clipboard
Typescript
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.
You can target to es6 and then use babel with "babel-plugin-env" targeting to node4.
I know, but I don't want to do two-step compilation.
@felixfbecker what if target to es5?
https://github.com/postgraphql/postgraphql/pull/305 heres an example of typescript targeting es6 now targting es5.