From e4d85e9601e35e79bec3ff96a44aecd67c44a233 Mon Sep 17 00:00:00 2001 From: "DJ.W17C@" <64959230+group900-3@users.noreply.github.com> Date: Tue, 17 Oct 2023 14:55:30 -0500 Subject: [PATCH] fix: types --- packages/infinite/createTRPCSWRInfinite.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/infinite/createTRPCSWRInfinite.ts b/packages/infinite/createTRPCSWRInfinite.ts index 05b21bf..1839525 100644 --- a/packages/infinite/createTRPCSWRInfinite.ts +++ b/packages/infinite/createTRPCSWRInfinite.ts @@ -10,7 +10,6 @@ import { ProcedureRouterRecord, } from "@trpc/server"; import { createFlatProxy, createRecursiveProxy } from "@trpc/server/shared"; -import { SWRConfiguration } from "swr"; import _useSWRInfinite, { SWRInfiniteConfiguration, SWRInfiniteResponse, @@ -28,14 +27,14 @@ type DecorateProcedure< pageIndex: number, previousPageData: TData | null, ) => inferProcedureInput | null, - opts?: SWRConfiguration & { + opts?: SWRInfiniteConfiguration & { isDisabled?: boolean; }, ) => SWRInfiniteResponse>; useCursor: >( input: inferProcedureInput, getCursor: (previousPageData: TData | null) => any, - opts?: SWRConfiguration & { + opts?: SWRInfiniteConfiguration & { isDisabled?: boolean; }, ) => SWRInfiniteResponse>;