downlevel-dts
downlevel-dts copied to clipboard
[bug] type parameter names are stripped erroneously leading to broken code
Input:
declare abstract class DefinitionBase<TType extends string> {}
Expected:
declare abstract class DefinitionBase<TType extends string> {}
Actual:
declare abstract class DefinitionBase< extends string> {}
This appears to be a regression in 0.10.0
and does not happen in 0.9.0
combination of TS 4.9.3 and this 0.11.0 seems to work correctly - I assume one must always pair "correct" TS and downlevel-dts versions (although its not entirely clear to me what the "correct" version is for the past releases)