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>;