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
After updating to 0.7.2, I get
0.7.2
TS2605: JSX element type 'string | Element[]' is not a constructor function for JSX elements. Type 'string' is not assignable to type 'Element'.
With the usage is a basic usage of ComboboxOptionText.
ComboboxOptionText
<ComboboxOption value={item.name}> <ComboboxOptionText /> </ComboboxOption>
The type that is generated to ComboboxOptionText is
export declare function ComboboxOptionText(): string | JSX.Element[]; export declare namespace ComboboxOptionText { var displayName: string; }
It should allow using this component as JSX constructor
https://codesandbox.io/s/frosty-https-fu22e
DefinitelyTyped/DefinitelyTyped#20544 (comment)
Related to DefinitelyTyped/DefinitelyTyped#20544
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
🐛 Bug report
After updating to
0.7.2
, I getCurrent Behavior
With the usage is a basic usage of
ComboboxOptionText
.The type that is generated to
ComboboxOptionText
isExpected behavior
It should allow using this component as JSX constructor
Reproducible example
https://codesandbox.io/s/frosty-https-fu22e
Suggested solution(s)
DefinitelyTyped/DefinitelyTyped#20544 (comment)
Additional context
Related to DefinitelyTyped/DefinitelyTyped#20544
Your environment
The text was updated successfully, but these errors were encountered: