Commit accdab6
Add special handling for identifiers which consist entirely of _ characters when transformUnderscore is true to emit valid Typescript syntax (#10412)
* Add special handling for identifiers that consist entirely of _ when we are asked to remove underscores. Added a test for this behaviour as well.
* Added changeset for change.
* Revert "Add special handling for identifiers that consist entirely of _ when we are asked to remove underscores. Added a test for this behaviour as well."
This reverts commit 3765f2a.
* Added more tightly scoped behaviour and test for enums from Typescript specifically.
* Update packages/plugins/other/visitor-plugin-common/src/base-types-visitor.ts
Co-authored-by: Eddy Nguyen <github@eddeee888.me>
---------
Co-authored-by: Eddy Nguyen <github@eddeee888.me>1 parent d63ed00 commit accdab6
File tree
3 files changed
+29
-2
lines changed- .changeset
- packages/plugins
- other/visitor-plugin-common/src
- typescript/typescript/tests
3 files changed
+29
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
493 | 493 | | |
494 | 494 | | |
495 | 495 | | |
| 496 | + | |
| 497 | + | |
496 | 498 | | |
497 | 499 | | |
498 | 500 | | |
| |||
903 | 905 | | |
904 | 906 | | |
905 | 907 | | |
906 | | - | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
907 | 911 | | |
908 | 912 | | |
909 | 913 | | |
| |||
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
216 | 234 | | |
217 | 235 | | |
218 | 236 | | |
| |||
0 commit comments