Type errors in lambda integration - tRPC