We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found the logical issue in 22th problem
Middleware type don't consider promises as output.
If we add one more middleware after middleware with async function we see that req become Promise:
req
Solution: add Promise<> variant to return value:
use<NewTOutput extends TOutput>( middleware: Middleware<TOutput, NewTOutput | Promise<NewTOutput>> ): DynamicMiddleware<TInput, NewTOutput> { this.middleware.push(middleware); ...
+ | Promise<NewTOutput> solves the problem
| Promise<NewTOutput>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found the logical issue in 22th problem
Middleware type don't consider promises as output.
If we add one more middleware after middleware with async function we see that
req
become Promise:Solution: add Promise<> variant to return value:
+
| Promise<NewTOutput>
solves the problemThe text was updated successfully, but these errors were encountered: