I have a method declared as stop(): void|Promise<void> {} which get the error
A function whose declared type is neither 'void' nor 'any' must return a value
As void is a valid return type I would expect that to be fully valid code. Specifying only void is working.
I have a method declared as
stop(): void|Promise<void> {}which get the errorAs void is a valid return type I would expect that to be fully valid code. Specifying only void is working.