News for hackers. Stuff that matters.
Re:TypeScript 3.7 by akiselev on Tuesday November 05, 2019 @08:20PM (#21458825)
`let` and `const` are transpiled by Typescript/babel to `var`.
Re:TypeScript 3.7 by mantap on Wednesday November 06, 2019 @12:02AM (#21459842)
The point is you can put var inside the try because it has function scope. That's what I do, although it is inelegant.
Re:TypeScript 3.7 by ascorbic on Wednesday November 06, 2019 @02:39AM (#21460493)
Only if the target is ES3 or ES5.