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
Following code works as expected, but intellisense won't work for additional union attributes ( foo / bar ) although if attribute is provided manually, intellisense works as expected (foo->blah OR wat )
Code
importReact,{Component}from'react'typeProps=|{type: 'foo'foo: 'blah'|'wat'}|{type: 'bar'bar: string}classTestextendsComponent<Props>{render(){returnnull}}constApp=()=>(<>{/* missing `foo` attribute intellisene, but works for literal values */}<Testtype="foo"/>;{/* missing `bar` attribute intellisene */}<Testtype="bar"/></>)
Expected behavior:
provide intellisense for supported union attributes
The text was updated successfully, but these errors were encountered:
Hotell
changed the title
JSX missing intellisense for discriminant union props
[bug]: JSX missing intellisense for discriminant union props
Jul 8, 2018
Hotell
changed the title
[bug]: JSX missing intellisense for discriminant union props
[bug/jsx]: JSX missing intellisense for discriminant union props
Jul 8, 2018
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Uh oh!
There was an error while loading. Please reload this page.
TypeScript Version: 2.9.2.
strict: true
Search Terms:
jsx discriminant unions, jsx unions
Following code works as expected, but intellisense won't work for additional union attributes (
foo
/bar
) although if attribute is provided manually, intellisense works as expected (foo
->blah OR wat
)Code
Expected behavior:
provide intellisense for supported union attributes
Actual behavior:
Related Issues: #21427 #25503
The text was updated successfully, but these errors were encountered: