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

isolatedDeclarations drops type parameters in call signature #4015

Closed
MichaelMitchell-at opened this issue Jul 2, 2024 · 0 comments · Fixed by #4021
Closed

isolatedDeclarations drops type parameters in call signature #4015

MichaelMitchell-at opened this issue Jul 2, 2024 · 0 comments · Fixed by #4021
Labels
A-codegen Area - Code Generation C-bug Category - Bug

Comments

@MichaelMitchell-at
Copy link
Contributor

MichaelMitchell-at commented Jul 2, 2024

Tested version: 0.16.3

> require('oxc-transform').isolatedDeclaration('hello.ts', 'export let foo!: { <T>(t: T): void }')
{ sourceText: 'export declare let foo: {(t: T): void};\n', errors: [] }

Actual: export declare let foo: {(t: T): void};
Expected: export declare let foo: {<T>(t: T): void};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area - Code Generation C-bug Category - Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants