[no-invalid-void-type] another use case for void type #2165
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
https://www.typescriptlang.org/play/index.html#code/PTAEBUAsEsGdQO7QDbNAYwIYFdYFNQ8AnIgeyICgAzbAO3QBdpTbQG9YGAKBmWALlB0AJnirRaeYQEpQAb1ABfChRCgAQtgZs+iFGgBGBcZNVga9JizYduvOIIBupaDPlKV7Tl2lA
Expected Result
No error.
Actual Result
Error: void is only valid as a return type or generic type variable
Additional Info
I think this is another valid use case that should be supported. Real life use case: vuejs/core#605
Versions
@typescript-eslint/eslint-plugin
3.1.0
@typescript-eslint/parser
3.1.0
TypeScript
3.9.3
ESLint
7.1.0
node
14.4.0
npm
6.14.5
The text was updated successfully, but these errors were encountered: