Property 'params' does not exist on type 'Context<State, Record<string, any>> ... what to do?
I want to access params in oak, but typescript complains.
What can I do about that?
Thanks.
2 Replies
this is my controller action:
I've fought with this when Oak made major updates.
Try importing the RouterContext from oak.
change the function to (context: RouterContext<string> )
Also there is a helper for grabbing query params that can help too.
Import helpers from oak,