Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
djwitcat authored Oct 17, 2023
1 parent bb74ec5 commit e4d85e9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/infinite/createTRPCSWRInfinite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
ProcedureRouterRecord,
} from "@trpc/server";
import { createFlatProxy, createRecursiveProxy } from "@trpc/server/shared";
import { SWRConfiguration } from "swr";
import _useSWRInfinite, {
SWRInfiniteConfiguration,
SWRInfiniteResponse,
Expand All @@ -28,14 +27,14 @@ type DecorateProcedure<
pageIndex: number,
previousPageData: TData | null,
) => inferProcedureInput<TProcedure> | null,
opts?: SWRConfiguration<TData> & {
opts?: SWRInfiniteConfiguration<TData> & {
isDisabled?: boolean;
},
) => SWRInfiniteResponse<TData, TRPCClientErrorLike<TProcedure>>;
useCursor: <TData = inferProcedureOutput<TProcedure>>(
input: inferProcedureInput<TProcedure>,
getCursor: (previousPageData: TData | null) => any,
opts?: SWRConfiguration<TData> & {
opts?: SWRInfiniteConfiguration<TData> & {
isDisabled?: boolean;
},
) => SWRInfiniteResponse<TData, TRPCClientErrorLike<TProcedure>>;
Expand Down

0 comments on commit e4d85e9

Please sign in to comment.