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
$Subtype and $Shape generic flow types don't make sense in typescript. The tool should remove them, i.e. $Subtype<Type> -> Type.
$Subtype
$Shape
$Subtype<Type>
Type
See microsoft/TypeScript#2710 (comment) .
The text was updated successfully, but these errors were encountered:
$Shape is an alias of Partial: https://github.com/piotrwitek/utility-types/blob/master/src/utility-types.ts#L134 In Flow it marks all the properties of a type optional, likewise with its TS equivalent. Can you please elaborate on why it doesn't make sense? Maybe we should change it directly to Partial and skip the utility-types alias.
Partial
utility-types
Agreed with $Subtype. I don't think that's something we currently handle at all so it is output as-is. I'll add a case for it.
Sorry, something went wrong.
Completed here, thanks! #8
No branches or pull requests
$Subtype
and$Shape
generic flow types don't make sense in typescript.The tool should remove them, i.e.
$Subtype<Type>
->Type
.See microsoft/TypeScript#2710 (comment) .
The text was updated successfully, but these errors were encountered: