Kseikyo
Kseikyo
TtRPC
Created by johste on 8/30/2023 in #❓-help
Need help identifying the generic client side type of procedures
I'm not sure what you're trying to do, but if you're trying to get the type for subscribe, you can use the inferRouterInputs
/**
* Inference helper for inputs.
*
* @example type HelloInput = RouterInputs['example']['hello']
*/
export type RouterInputs = inferRouterInputs<AppRouter>;

/**
* Inference helper for outputs.
*
* @example type HelloOutput = RouterOutputs['example']['hello']
*/
export type RouterOutputs = inferRouterOutputs<AppRouter>;
/**
* Inference helper for inputs.
*
* @example type HelloInput = RouterInputs['example']['hello']
*/
export type RouterInputs = inferRouterInputs<AppRouter>;

/**
* Inference helper for outputs.
*
* @example type HelloOutput = RouterOutputs['example']['hello']
*/
export type RouterOutputs = inferRouterOutputs<AppRouter>;
3 replies
TtRPC
Created by xdxd#5555 / hanya on 8/17/2023 in #❓-help
Queries work but mutations do not
up! Just opened this issue on the t3 repo, have been struggling with this for days https://github.com/t3-oss/create-t3-app/issues/1549
5 replies