How to infer types from input? - tRPC