You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Type-checking this won't work without something like #29818 .
The contextual types here could maybe be improved to aid autocompletions and stuff like that, but it likely wouldn't solve your underlying problem, see this playground
Type-checking look like works. In fact, I need provide correct keywords hints when typing 'a', such as:
When using function not JSX, call a function which is return React.ReactElement type. It provide the correct hints.
Bug Report
π Search Terms
jsx, infer property
π Version & Regression Information
β― Playground Link
Playground Link
π» Code
π Actual behavior
Infer test property is
string
type in JSX.π Expected behavior
Infer test property is
'aaaa'
type in JSX.The text was updated successfully, but these errors were encountered: