I am getting an type error while overwriting the core services like find and findOne in old way. It is giving me generic type error.Can you help me how to do this ? When i was wiriting strapi code it was 4.3.2 but i wanted to upgrade on 4.3.6

System Information
  • Strapi Version: 4.3.2 current

  • Operating System: Ubuntu 20.04

  • Database: postgres

  • Node Version: 16.16.0

  • NPM Version: 8.11.0

  • Yarn Version:

I am getting an type error while overwriting the core services like find and findOne in old way. It is giving me generic service type error which was updated 19 days ago from today .Can you help me how to do this ? When i was wiriting strapi code it was 4.3.2 but i wanted to upgrade on 4.3.6. Please help me to overcome this

Hello, since this was also asked on discord I will also ask here.
What’s is the error, without knowing thr error not much anyone can do to help, hence why I’m guessing nobody answered on our discord community either. :blush:

I know no one has answered. Actully what i am trying to say that how to customize the core services of an api. While i was in 4.3.2 it is easy to overwrite the file as mentioned in the document. But 19 days ago i saw on github some one has changed the cfg type to generic service that i dont know how to type it. cfg is a callback which is given to coreservicefunction. Can you please help i want to upgrade 4.3.6.
No one in answering my question. I am simply saying that how to overwrite find ,findOne method in core services of an api because i have implemented soft delete feature in strapi.

So if you are in doubt in typescript with types give it an any type.

This is a great read.