You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
MichaelMitchell-at
changed the title
[transpileDeclaration API][5.5]
[transpileDeclaration API][5.5] Type-only import is missing when type is used as arrow function argument
May 4, 2024
π 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: