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
One common source of error is forgetting to use promise:
async function main() { foo(); // should be await foo(); }
This can be solved with generic $MustUse type:
$MustUse
async function foo(): $MustUse<Promise<void>> { // ... }
The text was updated successfully, but these errors were encountered:
@vkurchatkin
Is there anything like this currently? I'm looking to solve the exact problem in your example.
Sorry, something went wrong.
Not to my knowledge
This is now implemented with unused promise lint.
No branches or pull requests
One common source of error is forgetting to use promise:
This can be solved with generic
$MustUse
type:The text was updated successfully, but these errors were encountered: