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
as you can see, the first one is just NameExpression, which means it only gets the last of the type definition. If you reverse it from {Array<string>|string} to {string|Array<string>} the first result will be TypeApplication.
First, it would be cool if in the tag object there is also the whole non-parsed string of the types.
Second, the example case
I always felt there's something wrong. Finally dug down and found it.
as you can see, the first one is just NameExpression, which means it only gets the last of the type definition. If you reverse it from
{Array<string>|string}
to{string|Array<string>}
the first result will be TypeApplication.In short, the problem only when there is a TypeApplication type in a UnionType, because this works
{string|boolean}
okay.I believe that the expected result should be
@jonschlinkert seems like I continue to stack up more and more issues 😆 🙉 ❤️
The text was updated successfully, but these errors were encountered: