[transpileDeclaration API][5.5] Type-only import is missing when type is used as arrow function argument #58430
Labels
Domain: ts.transpileDeclaration
Issues regarding the transpileDeclaration API, which do not reproduce without it
π Search Terms
transpile declaration api emit missing import
π Version & Regression Information
transpileDeclaration
API methodΒ #58261 @weswighamβ― Playground Link
https://github.com/MichaelMitchell-at/transpile_declaration_bug_repro/tree/bug2
π» Code
Workbench Repro
π Actual behavior
Refer to this program which invokes the
ts.transpileDeclaration
API:https://github.com/MichaelMitchell-at/transpile_declaration_bug_repro/blob/bug2/transpile.mjs
Basic instructions to invoke it can be found in
https://github.com/MichaelMitchell-at/transpile_declaration_bug_repro/blob/bug2/README.md
When using the API,
b.d.ts
is emitted aswhile when using
tsc
it gets emitted asπ Expected behavior
Using the API should emit
Additional information about the issue
The text was updated successfully, but these errors were encountered: