chore: fix linting issues

Signed-off-by: Adithya Krishna <aadithya794@gmail.com>
This commit is contained in:
Adithya Krishna
2024-05-09 12:35:58 +05:30
parent 3c23624fdb
commit 2336e70495
14 changed files with 18 additions and 15 deletions

View File

@ -1,6 +1,6 @@
import { TRPCClientError } from '@trpc/client';
import { AppRouter } from '../server/router';
import type { AppRouter } from '../server/router';
export const isTRPCBadRequestError = (err: unknown): err is TRPCClientError<AppRouter> => {
return err instanceof TRPCClientError && err.shape?.code === 'BAD_REQUEST';