Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] type parameter names are stripped erroneously leading to broken code #77

Open
bradzacher opened this issue May 10, 2022 · 3 comments

Comments

@bradzacher
Copy link
Contributor

Input:

declare abstract class DefinitionBase<TType extends string> {}

Expected:

declare abstract class DefinitionBase<TType extends string> {}

Actual:

declare abstract class DefinitionBase< extends string> {}
@bradzacher bradzacher changed the title [bug] type parameter names are stripped [bug] type parameter names are stripped erroneously leading to broken code May 10, 2022
@antoniosZ
Copy link

This appears to be a regression in 0.10.0 and does not happen in 0.9.0

@michkot
Copy link

michkot commented Nov 24, 2022

Bug seems to be still present in v 0.11.0

Sample input and output:
repro.zip

Target used: 4.2

@michkot
Copy link

michkot commented Dec 1, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants