allow better typechecks by setting a max-recursion depth #13052
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
it's been said many times that certain features cannot be implemented properly due to hitting infinite recursion, and because of that all sort of shortcuts been taken to keep performance acceptable
consider adding a
max-depth
parameter to thecompilerOptions
which controls how deep the type checker can gofor developers who don't care about thorough type checks the depth can be 0
others can set it to any comfortable number which gives acceptable results in acceptable time
The text was updated successfully, but these errors were encountered: