Skip to content

Commit

Permalink
Merge pull request #51 from group900-3/patch-1
Browse files Browse the repository at this point in the history
fix: types
  • Loading branch information
sannajammeh authored Oct 23, 2023
2 parents 2fcbcef + e4d85e9 commit 32f9937
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

1 comment on commit 32f9937

@vercel
Copy link

@vercel vercel bot commented on 32f9937 Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

trpc-swr – ./

trpc-swr-git-main-sannajammeh.vercel.app
trpc-swr-sannajammeh.vercel.app
trpc-swr.vercel.app

Please sign in to comment.