File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import { execute } from "@apollo/client/link";
1515import type { ClientAwarenessLink } from "@apollo/client/link/client-awareness" ;
1616import type { LocalState } from "@apollo/client/local-state" ;
1717import type { MaybeMasked , Unmasked } from "@apollo/client/masking" ;
18+ import type { DeepPartial } from "@apollo/client/utilities" ;
1819import { DocumentTransform } from "@apollo/client/utilities" ;
1920import { __DEV__ } from "@apollo/client/utilities/environment" ;
2021import type { VariablesOption } from "@apollo/client/utilities/internal" ;
@@ -1188,7 +1189,9 @@ export class ApolloClient {
11881189 | ApolloClient . ObservableFragment < Array < TData > > {
11891190 const dataMasking = this . queryManager . dataMasking ;
11901191
1191- const mask = ( data : TData ) : TData => {
1192+ const mask = (
1193+ data : TData | DeepPartial < TData > | null
1194+ ) : TData | DeepPartial < TData > | null => {
11921195 // The transform will remove fragment spreads from the fragment
11931196 // document when dataMasking is enabled. The `mask` function
11941197 // remains to apply warnings to fragments marked as
You can’t perform that action at this time.
0 commit comments