You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const server = http2.createSecureServer({
key: fs.readFileSync('server.key'),
cert: fs.readFileSync('server.crt')
}, app);
error TS2345: Argument of type 'Express' is not assignable to parameter of type '(request: Http2ServerRequest, response: Http2ServerResponse) => void'.
Types of parameters 'req' and 'request' are incompatible.
Type 'Http2ServerRequest' is not assignable to type 'IncomingMessage | Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type 'Http2ServerRequest' is missing the following properties from type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>': get, header, accepts, acceptsCharsets, and 26 more.
18 }, app);
The text was updated successfully, but these errors were encountered:
Hello, and sorry for your issue. The TypeScript definitions are not kept in this repository, instead they are maintained at the https://github.com/DefinitelyTyped/DefinitelyTyped project. If you are having an error with typings, you'll need to open an issue or make a pull request there for the express typings.
As for using it with express, it is possible, though there are still issues with the Node.js compatibility API you may run in to. The Node.js project has a list of them at nodejs/node#29829 . I hope this helps!
Does it support HTTP/2 now? If not, when?
The text was updated successfully, but these errors were encountered: