Skip to content

[WIP] Introduce a MaskedDocumentNode type to contain both the masked and full types #2362

[WIP] Introduce a MaskedDocumentNode type to contain both the masked and full types

[WIP] Introduce a MaskedDocumentNode type to contain both the masked and full types #2362

Triggered via pull request September 20, 2024 06:14
Status Failure
Total duration 37s
Artifacts

api-extractor.yml

on: pull_request
Api-Extractor
25s
Api-Extractor
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Api-Extractor: src/core/ObservableQuery.ts#L700
Type 'Promise<void> | Promise<ApolloQueryResult<MaybeMasked<TData>>>' is not assignable to type 'Promise<void | ApolloQueryResult<TData>>'.
Api-Extractor: src/core/QueryManager.ts#L821
Type 'MaybeMasked<TData>' is not assignable to type 'TData'.
Api-Extractor: src/core/QueryManager.ts#L1068
Type 'MaybeMasked<T> | null | undefined' is not assignable to type 'T | null | undefined'.
Api-Extractor: src/react/hooks/useLazyQuery.ts#L241
Argument of type 'InternalQueryResult<Unmask<TData>, TVariables>' is not assignable to parameter of type 'Omit<QueryResult<TData, TVariables>, "updateQuery" | "fetchMore" | "startPolling" | "stopPolling" | "subscribeToMore" | "refetch" | "reobserve"> | PromiseLike<...>'.
Api-Extractor: src/react/hooks/useLazyQuery.ts#L243
Argument of type 'TData | undefined' is not assignable to parameter of type 'Unmask<TData> | undefined'.
Api-Extractor: src/react/hooks/useQuery.ts#L292
Type '{ refetch: (variables?: Partial<TVariables> | undefined) => Promise<ApolloQueryResult<TData>>; reobserve: (newOptions?: Partial<...> | undefined, newNetworkStatus?: NetworkStatus) => Promise<ApolloQueryResult<TData>>; ... 4 more ...; subscribeToMore: <TSubscriptionData = TData, TSubscriptionVariables extends Operati...' is not assignable to type 'Omit<ObservableQueryFields<TData, TVariables>, "variables">'.
Api-Extractor: src/react/hooks/useQuery.ts#L409
Argument of type 'InternalResult<TData, TVariables>' is not assignable to parameter of type 'InternalResult<Unmask<TData>, TVariables>'.
Api-Extractor: src/react/hooks/useQuery.ts#L728
Argument of type 'InternalResult<TData, TVariables>' is not assignable to parameter of type 'InternalResult<Unmask<TData>, TVariables>'.
Api-Extractor: src/react/internal/cache/QueryReference.ts#L360
Type '{ data: Unmask<TData>; errors?: ReadonlyArray<GraphQLFormattedError>; error?: ApolloError; loading: boolean; networkStatus: NetworkStatus; partial?: boolean; }' is not assignable to type 'ApolloQueryResult<TData>'.
Api-Extractor: src/react/internal/cache/QueryReference.ts#L381
Argument of type 'Promise<ApolloQueryResult<MaybeMasked<TData>>>' is not assignable to parameter of type 'Promise<ApolloQueryResult<TData>>'.