Skip to content

Commit 67b8b8c

Browse files
committed
fetchMore typing was too loose
Fixes #2346
1 parent b0d32b2 commit 67b8b8c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/fifty-lizards-applaud.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'apollo-angular': patch
3+
---
4+
5+
`fetchMore` typing was too loose

packages/apollo-angular/src/query-ref.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ export class QueryRef<TData, TVariables extends OperationVariables = EmptyObject
9797
}
9898

9999
public fetchMore<TFetchVars extends OperationVariables = TVariables>(
100-
fetchMoreOptions: Parameters<QueryRef<TData, TFetchVars>['obsQuery']['fetchMore']>[0],
101-
): ReturnType<QueryRef<TData, TFetchVars>['obsQuery']['fetchMore']> {
100+
fetchMoreOptions: Parameters<ObservableQuery<TData, TFetchVars>['fetchMore']>[0],
101+
): ReturnType<ObservableQuery<TData, TFetchVars>['fetchMore']> {
102102
return this.obsQuery.fetchMore(fetchMoreOptions);
103103
}
104104

0 commit comments

Comments
 (0)