Answer the question
In order to leave comments, you need to log in
What is different in TS return Promise.resolve(); from a simple return;?
It seems to return both, Promise<void>
but eslint swears at no consistent return if in one place return; and in anotherreturn Promise.race<void>([])
Answer the question
In order to leave comments, you need to log in
if all this is written in an asynchronous function, then you need to writereturn await Promise.race<void>([])
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question