[transpileDeclaration API][5.5] Type containing enum values is incorrectly emitted #58423
Labels
Domain: ts.transpileDeclaration
Issues regarding the transpileDeclaration API, which do not reproduce without it
Fix Available
A PR has been opened for this issue
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
π Search Terms
transpile declaration api emit enum missing
π Version & Regression Information
transpileDeclaration
API methodΒ #58261 @weswighamβ― Playground Link
https://github.com/MichaelMitchell-at/transpile_declaration_bug_repro
π» 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/main/transpile.mjs
Basic instructions to invoke it can be found in
https://github.com/MichaelMitchell-at/transpile_declaration_bug_repro/blob/main/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
It's entirely possible that usage of the API is incorrect, though it doesn't seem to deviate from the patterns demonstrated in https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API
The text was updated successfully, but these errors were encountered: