Promises must be handled appropriately or explicitly marked as ignored with the
void
operator.eslint@typescript-eslint/no-floating-promises
That's a crappy error message. A better one might be,
every expression of type Promise
must end with a call to .catch
or a call to .then
with a rejection handler (source).
So, for example, if you do