System Information
- Strapi Version: 4.25.1
- Operating System: Ubuntu/WSL + Windows11
- Database: mysql
- Node Version: v20.12.2
- NPM Version: 10.2.0
- Yarn Version: -
I am currently building a project using TypeScript. However, if I generate an API using the generate command as shown in image 1 and define a function inside the service as shown in image 2, I can’t seem to access the typings of the function from the controller. Everything is defined as any
. Is this by design, or am I doing something wrong?
Please see images 3 and 4 for reference.
I would be very grateful if someone could help me with this issue.
I have tested this with the current project using the stable version of Strapi 4 and the dev version 5, and I am facing the same problem regardless of the version.
Sorry I had to combine all the images into one so I could create a new post.