Closed hackerwins closed 3 years ago
yarn run pretty
Define Promise to be void to fix TS2794 error
The following error occurs about the return type of Promise.
Expected 1 argument, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?
https://stackoverflow.com/questions/65354965/error-ts2794-expected-1-arguments-but-got-0-did-you-forget-to-include-void
(Add your own one below :])
Fixed in latest
Checklist
yarn run pretty
What?
Define Promise to be void to fix TS2794 error
Why?
The following error occurs about the return type of Promise.
https://stackoverflow.com/questions/65354965/error-ts2794-expected-1-arguments-but-got-0-did-you-forget-to-include-void
How?
Feel good image:
(Add your own one below :])