[ID-Prep] Parameter types are not preserved for optional parameters /fields with undefined in type and for required params with default value #57483
Labels
Possible Improvement
The current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
The [ID-prep] set of issues aligns Declaration Emit with the forthcoming Isolated Declarations feature.
🔎 Search Terms
optional parameter types not preserved
🕗 Version & Regression Information
⏯ Playground Link
Playground Link
💻 Code
🙁 Actual behavior
Parameters and fields named
reuseTypeNode*
have their types re-printed (and mangled) by the declaration transform even though the re-printed type is semantically equivalent to the source type.🙂 Expected behavior
Parameters and fields named
reuseTypeNode*
should have their types preserved as they are written in source codeAdditional information about the issue
No response
The text was updated successfully, but these errors were encountered: