Re:A project with a single 11,000-line code file
by razh on Sunday April 03, 2022 @03:42PM
(#30899932)
Unlike the OP's file, there's a rather substantial test suite and massive corpus of TypeScript code to work with, so at the very least, you'd have some grumpy people knocking on your door if you did something that negatively impacted the greater ecosystem.
Some documentation from Orta Therox on the checker:
https://github.com/microsoft/TypeScript-Compiler-Notes/blob/...
Re:A project with a single 11,000-line code file
by mtoddsmith on Monday April 04, 2022 @01:12AM
(#30903496)
const anon = "(anonymous)" as __String & string;
What does that even mean? It seems that typescript uses an alias for string as __String in the source but then a bitwise operator with string?
https://github.com/microsoft/TypeScript/blob/main/src/compil...
Does anyone know why and how they maintain it?