blakeembrey / blakeembrey/async-middleware

Type inference is not working

Open
#19 7 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
51
Forks
1
PR merge metrics
No merged PRs in 30d

Description

With the latest version of `@types/express`, I cannot use `wrap()` without having to explicitly declare the types of `req`, `res` and `next`.

Without `wrap()`, the types are inferred.

This is especially unfortunate because `app.get()` is now generic and you customize the parameter types of a route, but this way you need to duplicate them.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.