infer from trpc calls

It appears trpc clients dont infer the return type, and I have to set it in useQuery like this..

const addressResult = api.registration.addressLookup.useQuery<{ a: string }>(
{ address: address },
{ enabled: false }
);

Is this the case?
Was this page helpful?