Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Express.js + eslint error - Promise returned in function argument where a void return was expected #28

Open
kkocel opened this issue Feb 9, 2021 · 0 comments

Comments

@kkocel
Copy link
Contributor

kkocel commented Feb 9, 2021

When having following code:

const expressApp: Express = express().use(bodyParser.json());
expressApp.post("/fulfillment", app);

and running it in eslint I get:

error    Promise returned in function argument where a void return was expected  @typescript-eslint/no-misused-promises
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant