[X] used the search to make sure that a similar issue hasn't already been submit
Expected Behavior
TSC Ok
Current Behavior
I get this error:
src/routes/routes.ts:29:39 - error TS2352: Conversion of type '(expressRequest: Request, securityName: string, scopes: string[]) => Promise<void>' to type '(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, securityName: string, scopes?: string[] | undefined, res?: Response<...> | undefined) => Promise<...>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Types of parameters 'expressRequest' and 'req' are incompatible.
Type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is missing the following properties from type 'Request': cache, credentials, destination, integrity, and 13 more.
29 const expressAuthenticationRecasted = expressAuthentication as (req: ExRequest, securityName: string, scopes?: string[], res?: ExResponse) => Promise<any>;
Found 1 error in src/routes/routes.ts:29
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
TSC Ok
Current Behavior
I get this error:
Possible Solution
Adding an unknown convertion probably fix:
Steps to Reproduce
Empty
Context (Environment)
Version of the library: v6.2.1 Version of NodeJS: 20
Detailed Description
Breaking change?