How to type the Context object in Strapi API with TypeScript?

Hey @huylv177, that is true, they definetely support it. I think I expressed what I wanted badly on the previous comment, thanks for clearing that out!

I just felt like Strapi should be exporting all the types related to the variables of Strapi, but that does not happen for the Context, for example. But the solution provided here works well to type the Context :tada:

1 Like