tinyhttp: Incompatible with Express middleware: `express.Handler`
Describe the bug
I am attempting to use the @bufbuild/connect-express middleware.
The middleware has the following signature:
export declare function expressConnectMiddleware(options: ExpressConnectMiddlewareOptions): express.Handler;
To Reproduce
Steps to reproduce the behavior:
import { expressConnectMiddleware } from "@bufbuild/connect-express";
import { App } from "@tinyhttp/app";
const app = new App();
app
.use(
expressConnectMiddleware({
}),
)
Versions
node: 20@tinyhttp/app: 2.0.32
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 26 (20 by maintainers)
Most pertinent bit I found:
RequestHandleris not assignable toAsyncHandler