How to get the non-array version of a RouterOutput['myRoute']
Hello, I'm trying to remove as many custom types as possible and instead use inferred types in the frontend. It works great to retrieve data from the server, but less when it comes to process that data via .filter() or .map() functions since those need the non-array version of the type.
anyone knows how to do it, or a nice alternative? Thanks 😀
2 Replies