File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ export class SWRVisitor extends ClientSideBaseVisitor<
203203 types . push ( `export type SWRInfiniteKeyLoader<Data = unknown, Variables = unknown> = (
204204 index: number,
205205 previousPageData: Data | null
206- ) => Variables | null;` )
206+ ) => Partial< Variables> | null;` )
207207 }
208208
209209 return `${ types . join ( '\n' ) }
Original file line number Diff line number Diff line change @@ -288,7 +288,7 @@ export type SdkWithHooks = ReturnType<typeof getSdkWithHooks>;`
288288 `export type SWRInfiniteKeyLoader<Data = unknown, Variables = unknown> = (
289289 index: number,
290290 previousPageData: Data | null
291- ) => Variables | null;
291+ ) => Partial< Variables> | null;
292292export function getSdkWithHooks(client: GraphQLClient, withWrapper: SdkFunctionWrapper = defaultWrapper) {
293293 const sdk = getSdk(client, withWrapper);
294294 const utilsForInfinite = {
You can’t perform that action at this time.
0 commit comments