Open yuezk opened 5 years ago
This appears to be an issue of parameter destructuring where default value contains typescriptBraces.
Here's another case that fails for me, seems ternary related though:
var thing = {
objectKey: (param) =>
param.field === 'String' ? `${inTemplate}` : param.field ?? null,
stringProp: true,
},
Interestingly, it works ok with javascript syntax (whichever one vim-polyglot provides) With either typescript or typescriptreact syntax type (shared in common I believe), it renders as such:
The reproducible code: