3 Replies
This is a typescript-eslint complaint (so, the linter, not TypeScript itself). Have you tried reading the docs linked by the complaint to understand why it's unhappy? https://typescript-eslint.io/rules/no-misused-promises/
no-misused-promises | typescript-eslint
Disallow Promises in places not designed to handle them.
try this