mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-02-04 08:06:56 +00:00
사소한 리팩토링 2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { createTRPCClient, httpBatchLink } from "@trpc/client";
|
||||
import { createTRPCClient, httpBatchLink, TRPCClientError } from "@trpc/client";
|
||||
import superjson from "superjson";
|
||||
import { browser } from "$app/environment";
|
||||
import type { AppRouter } from "./router.server";
|
||||
@@ -24,3 +24,7 @@ export const trpc = (fetch = globalThis.fetch) => {
|
||||
}
|
||||
return client;
|
||||
};
|
||||
|
||||
export const isTRPCClientError = (e: unknown): e is TRPCClientError<AppRouter> => {
|
||||
return e instanceof TRPCClientError;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user