Fun fact: they don't use 'class' in the compiler at all
Looks like a class to me: https://github.com/Microsoft/TypeScript/blob/master/src/comp...
Looks like a class to me: https://github.com/Microsoft/TypeScript/blob/master/src/comp...
// Keep the class inside a function so it doesn't get compiled if it's not used.
I didn't know it was possible.
Is the reasoning behind this documented anywhere?
I could only find instructions the coding guideline indicating as much (here: https://github.com/Microsoft/TypeScript/wiki/Coding-guidelin...) but couldn't find why. I'd love to know why, may better inform my usage of typescript.