TypeScript
TypeScript copied to clipboard
Drop unnecessary type arguments in the isolated declarations quick fix
Drops unnecessary type arguments in the isolated declarations quick fix by repeatedly trying to resolve a resulting reference type with a prefix of the full type arguments until finding the minimal number of arguments that work.
Fixes #58449
(I'm sure that the code at present isn't using the proper APIs, but I'd appreciate feedback)