TRPC async promise return type
Hello I am having some trouble with the types of the return values from the trpc router. I am unsure how to properly type and resolve this promise type error.
I have a navbar component that I am calling the trpc router for the categories I am pulling from my db and ive awaited that call
And I am calling the router here
In the plugin dropdown I also have already created an interface (although not sure if this is the right way to do it)
How can I resolve my type error on the categories prop? Any help is really appreciated!
I have a navbar component that I am calling the trpc router for the categories I am pulling from my db and ive awaited that call
And I am calling the router here
In the plugin dropdown I also have already created an interface (although not sure if this is the right way to do it)
How can I resolve my type error on the categories prop? Any help is really appreciated!
