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
void
TypeScript has both undefined and void types. But in flow there is only void, which is used for both use-cases.
undefined
Currently void type is not changed in converted code, however - in most cases it looks undefined can be more appropriate.
Suggestion is to replace void with undefined for all cases, except when it is a return type:
Promise<void>
The text was updated successfully, but these errors were encountered:
zxbodya
No branches or pull requests
TypeScript has both
undefined
andvoid
types. But in flow there is onlyvoid
, which is used for both use-cases.Currently
void
type is not changed in converted code, however - in most cases it looksundefined
can be more appropriate.Suggestion is to replace
void
withundefined
for all cases, except when it is a return type:void
in function return typePromise<void>
The text was updated successfully, but these errors were encountered: