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
No overload matches this call.
The last overload gave the following error.
Argument of type '(req: ForestRequest, res: Response) => Promise<void>' is not assignable to parameter of type 'RequestHandlerParams<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Type '(req: ForestRequest, res: Response) => Promise<void>' is not assignable to type 'RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>'.
Types of parameters 'req' and 'req' are incompatible.
Type 'Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>' is not assignable to type 'ForestRequest'.
Types of property 'user' are incompatible.
Type 'User | undefined' is not assignable to type 'User'.
Type 'undefined' is not assignable to type 'User'.ts(2769)
[index.d.ts(163, 5): ]()The last overload is declared here.
Hello!
I'm trying to override a route by using the snippet provided here https://docs.forestadmin.com/woodshop/how-tos/translate-your-project-into-typescript/v8/migrate-sequelize-files#override-your-routes, however I can't get around some typing issues with
ForestRequest
that conflict with Express'Request
.This is my code:
Expected behavior
Compile successfully.
Actual behavior
Compilation error.
Failure Logs
Context
"forest-express-sequelize": "^8.5.3"
4.17.1
6.3.5
mysql
5.7
4.5.2
The text was updated successfully, but these errors were encountered: