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
{{ message }}
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
@strothj I've followed the docs, but each time I use an union type or inline fn declaration I get union or signature as a type, no matter if types are in the same file or not. Here's minimum repro component
import*asReactfrom'react'typeCompound='a'|'b'|'c'typeProps={first: Compoundsecond: stringthird?: (x: Compound)=>Compound}exportconstReproComponent=({ first, second, third }: Props)=>(<div>{first}{second}</div>)
and as a result I see
name
description
default
first*
union
-
second*
string
-
third
signature
-
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
hi, running into a small bug with sub types being inferred inline:
is inferred as:
however exporting
SubType
from a separate file and importing it works correctly. This is only an issue with type aliases not interfaces.The text was updated successfully, but these errors were encountered: