I'm getting the following error while compiling a project with some complex types
The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.
I've tried to change the noTruncationMaximumTruncationLength directly on tsc.js file inside my node modules, i modified it from a value of 1e6 to 1e7 and my project magically compiles now (also in under 7 seconds)
I would like to avoid writing the explicit annotation because the code is so much clearer. Also with this tweak it's still fast to compile.
My questions is: there is a way to configure this magic number inside tsconfig? I couldn't find it, also there are no open issues on this topic.