System Information
- Strapi Version:
- Operating System:
- Database:
- Node Version:
- NPM Version:
- Yarn Version:
there is error in all of the code of customized controllers one of which is shown below
TS2345: Argument of type ‘<S extends { strapi: Strapi; }>({ strapi }: S) => { addService(ctx: any, args: any, next: any): any; }’ is not assignable to parameter of type ‘WithStrapiCallback<PartialWithThis<Partial & Generic>>’.
Type ‘<S extends { strapi: Strapi; }>({ strapi }: S) => { addService(ctx: any, args: any, next: any): any; }’ is not assignable to type ‘<S extends { strapi: Strapi; }>(params: S) => PartialWithThis<Partial & Generic>’.
Type ‘{ addService(ctx: any, args: any, next: any): any; }’ is not assignable to type ‘PartialWithThis<Partial & Generic>’.
Type ‘{ addService(ctx: any, args: any, next: any): any; }’ is not assignable to type ‘Partial<Partial & Generic>’.
Property ‘addService’ is incompatible with index signature.
Type ‘(ctx: any, args: any, next: any) => any’ is not assignable to type ‘ControllerHandler’.
Target signature provides too few arguments. Expected 3 or more, but got 2.
4 | “api::service.service”,
5 |
6 | ({ strapi }) => ({
| ^^^^^^^^^^^^^^^^^^
7 | /**
and i am also facing many other type errors which works perfectly in past version(4.13.5)