Re:TypeScript 3.7
by akiselev on Tuesday November 05, 2019 @08:20PM
(#21458825)
`let` and `const` are transpiled by Typescript/babel to `var`.
[ Parent
| on HN ]
The point is you can put var inside the try because it has function scope. That's what I do, although it is inelegant.