having type mismatch when adding a field to express.Request object (augmenting - see express.d.ts below).
without using async handler, everything works great.
it seems that it confusing with express/express-serve-static-core types for some reason
Argument of type '(request: Request<unknown, unknown, Partial<ISmokestack>>, response: Response) => Promise<Response<any, Record<string, any>>>' is not assignable to parameter of type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Types of parameters 'request' and 'req' are incompatible.
Property 'context' is missing in type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' but required in type 'Request<unknown, unknown, Partial<ISmokestack>, ParsedQs, Record<string, any>>'.ts(2345)
express.d.ts(5, 5): 'context' is declared here.
having type mismatch when adding a field to express.Request object (augmenting - see
express.d.ts
below). without using async handler, everything works great. it seems that it confusing with express/express-serve-static-core types for some reasonworking with these versions
the augmentation under
express.d.ts
the full error