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
It will result in.. Promise returned in function argument where a void return was expected.eslint[@typescript-eslint/no-misused-promises](https://typescript-eslint.io/rules/no-misused-promises)
...because the typings does not allow for an async function.
A suggested fix would be to type Action the same way as ActionFn but with the addition of Promise<void> (which should also be added to ActionFn i guess). Ie:
When binding a function manually....
...and do the actual binding
It will result in..
Promise returned in function argument where a void return was expected.eslint[@typescript-eslint/no-misused-promises](https://typescript-eslint.io/rules/no-misused-promises)
...because the typings does not allow for an async function.
A suggested fix would be to type
Action
the same way asActionFn
but with the addition ofPromise<void>
(which should also be added to ActionFn i guess). Ie:The text was updated successfully, but these errors were encountered: