-
Notifications
You must be signed in to change notification settings - Fork 13k
Mark "React" symbol as referenced #11721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…if there was no error message being displayed Fixes #10312
//@noUnusedLocals:true | ||
//@noUnusedParameters:true | ||
//@module: commonjs | ||
//@jsx: react |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a test for reactNamesapce
and noUnusedLocals
@@ -0,0 +1,23 @@ | |||
//@noUnusedLocals:true | |||
//@noUnusedParameters:true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you do not need the unused params here.
what about custom JSX backend using |
yup. see the test in https://github.com/Microsoft/TypeScript/blob/67873ca20b334c0b21e2a70440ab431a8b4bc41b/tests/cases/compiler/unusedImports15.ts |
It seems, that it doesn't work with new jsxFactory param in tsconfig.json. Can somebody confirm this? Should I open new issue? |
yes please. |
It won't not be marked as
isReferenced
inresolveName
when there is nodiagnosticMessage
when resolving it.Fixes #10312