5 lines
136 B
TypeScript
5 lines
136 B
TypeScript
export const createTrpcQueryKey = <TInput>(path: string, input: TInput) => [
|
|
path.split("."),
|
|
{ input, type: "query" as const },
|
|
];
|