Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
remove unneeded generic from overloaded Refetchable
Browse files Browse the repository at this point in the history
  • Loading branch information
tgriesser committed Mar 22, 2021
1 parent 999d038 commit 1178f4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,6 @@ export default node;

export function useRefetchableTodoAppDataFragment<TKey extends TodoAppData$key>(fragmentRef: TKey): [Required<TKey>[" $data"], RefetchFnDynamic<TodoAppRefetchQuery, TodoAppData$key>]
export function useRefetchableTodoAppDataFragment<TKey extends TodoAppData$key>(fragmentRef: TKey | null): [Required<TKey>[" $data"] | null, RefetchFnDynamic<TodoAppRefetchQuery, TodoAppData$key | null>]
export function useRefetchableTodoAppDataFragment<TKey extends TodoAppData$key>(fragmentRef: any) {
export function useRefetchableTodoAppDataFragment(fragmentRef: any) {
return useRefetchableFragment(node, fragmentRef)
}
2 changes: 1 addition & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ function makeRefetchableFragmentBlock(name: string, operation: string) {
const n = capitalize(name);
return `export function useRefetchable${n}Fragment<TKey extends ${n}$key>(fragmentRef: TKey): [Required<TKey>[" $data"], RefetchFnDynamic<${operation}, ${n}$key>]
export function useRefetchable${n}Fragment<TKey extends ${n}$key>(fragmentRef: TKey | null): [Required<TKey>[" $data"] | null, RefetchFnDynamic<${operation}, ${n}$key | null>]
export function useRefetchable${n}Fragment<TKey extends ${n}$key>(fragmentRef: any) {
export function useRefetchable${n}Fragment(fragmentRef: any) {
return useRefetchableFragment(node, fragmentRef)
}`;
}
Expand Down

0 comments on commit 1178f4e

Please sign in to comment.