TypeScript icon indicating copy to clipboard operation
TypeScript copied to clipboard

[isolatedDeclarations][5.5] Autofix does not work when JSX prop contains a dash `-`

Open MichaelMitchell-at opened this issue 1 year ago • 0 comments

🔎 Search Terms

isolated declarations, jsx, autofix

🕗 Version & Regression Information

  • This changed in commit or PR https://github.com/microsoft/TypeScript/pull/58260

⏯ Playground Link

No response

💻 Code

export const x = <div aria-label="hello" />

🙁 Actual behavior

No autofix suggestion

🙂 Expected behavior

Autofix to add explicit type annotation

Additional information about the issue

This is with "jsx": "react-jsx" in tsconfig

MichaelMitchell-at avatar May 02 '24 02:05 MichaelMitchell-at