This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Lintrule "invalid-void" should permit Promise<void>
#4834
Labels
Promise<void>
#4834
Bug Report
I generally support
invalid-void
lint ruleBut I suggest to permit
Promise<void>
return type also. IMO it's wrong to force to change all of them toPromise<undefined>
, that only escalates to TS error:A function whose declared type is neither 'void' nor 'any' must return a value.ts(2355)
TypeScript code being linted
Actual behavior
Fails lint rule
invalid-void
#4732Expected behavior
Passes
The text was updated successfully, but these errors were encountered: