We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeScript Version: Nightly
Search Terms: intellisense jsx union
Code
import React from 'react'; type Exclusive = { /** * Original description */ a: boolean; b?: never; } | { /** * Never description */ a?: never; b: boolean; } const Component: React.FC<Exclusive> = () => <div></div>; Component({ a: true }); <Component a />;
Expected behavior: The field description for a shows up in intellisense.
a
Actual behavior: It does not.
Object literal at a normal function call looks good:
However, the description does not show up for JSX:
When writing using autocomplete to enter a new field:
Interestingly, JSX works in this case.
Playground Link: link
Related Issues:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
TypeScript Version: Nightly
Search Terms: intellisense jsx union
Code
Expected behavior: The field description for
a
shows up in intellisense.Actual behavior: It does not.
Object literal at a normal function call looks good:
However, the description does not show up for JSX:
When writing using autocomplete to enter a new field:
Interestingly, JSX works in this case.
Playground Link: link
Related Issues:
The text was updated successfully, but these errors were encountered: