Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions examples/frontend/src/github/githubContext.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {
skipToken,
type DefaultError,
type Enabled,
type QueryKey,
type UseQueryOptions,
} from "@tanstack/react-query";
Expand Down Expand Up @@ -31,7 +30,12 @@ export type GithubContext<
* Set this to `false` to disable automatic refetching when the query mounts or changes query keys.
* Defaults to `true`.
*/
enabled?: Enabled<TQueryFnData, TError, TQueryFnData, TQueryKey>;
enabled?: UseQueryOptions<
TQueryFnData,
TError,
TQueryFnData,
TQueryKey
>["enabled"];
};
};

Expand Down
3 changes: 1 addition & 2 deletions plugins/typescript/src/templates/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export const getContext = (
`import {
skipToken,
type DefaultError,
type Enabled,
type QueryKey,
type UseQueryOptions,
} from "@tanstack/react-query";
Expand All @@ -35,7 +34,7 @@ export const getContext = (
* Set this to \`false\` to disable automatic refetching when the query mounts or changes query keys.
* Defaults to \`true\`.
*/
enabled?: Enabled<TQueryFnData, TError, TQueryFnData, TQueryKey>;
enabled?: UseQueryOptions<TQueryFnData, TError, TQueryFnData, TQueryKey>['enabled'];
};
};

Expand Down