somehow when move typed function out of the router files, frontend infer type to be any ? - tRPC