File size: 315 Bytes
95d29a5 |
1 2 3 4 5 6 7 8 9 10 11 |
import { AppRouter } from '@server/trpc/trpc.router';
import { TRPCClientError, createTRPCReact } from '@trpc/react-query';
export const trpc = createTRPCReact<AppRouter>();
export function isTRPCClientError(
cause: unknown,
): cause is TRPCClientError<AppRouter> {
return cause instanceof TRPCClientError;
}
|