Skip to content

Commit

Permalink
Remove Data type
Browse files Browse the repository at this point in the history
which isn't in the typescript sources anymore.
  • Loading branch information
joshuanapoli committed Nov 4, 2023
1 parent 220c348 commit efd3a7f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ declare interface GraphQL$ExecutionResult<
// @apollo/client/link/core/types.d.ts
// Globals to support global ApolloLink class
declare type ApolloClient$Path = $ReadOnlyArray<string | number>;
declare type ApolloClient$Data<T> = T | null | void;

declare module "@apollo/client" {
import type { ApolloLink, GraphQLRequest, FetchResult, Operation, RequestHandler } from "@apollo/client/link/core";
Expand Down Expand Up @@ -2354,22 +2353,21 @@ declare module "@apollo/client/link/core" {
// @apollo/client/link/core/types.d.ts
declare export type Path = ApolloClient$Path;
declare export type Data<T> = ApolloClient$Data<T>;
declare export interface ExecutionPatchResultBase {
hasNext?: boolean;
}
declare export type ExecutionPatchInitialResult<
TData = { [key: string]: any, ... },
TExtensions = { [key: string]: any, ... }
> = {
data: ApolloClient$Data<TData>,
data: ?TData,
incremental?: empty,
errors?: $ReadOnlyArray<GraphQL$GraphQLError>,
extensions?: TExtensions,
...
} & ExecutionPatchResultBase;
declare export interface IncrementalPayload<TData, TExtensions> {
data: ApolloClient$Data<TData>;
data: ?TData;
label?: string;
path: ApolloClient$Path;
errors?: $ReadOnlyArray<GraphQL$GraphQLError>;
Expand Down Expand Up @@ -2412,7 +2410,7 @@ declare module "@apollo/client/link/core" {
TContext = { [key: string]: any, ... },
TExtensions = { [key: string]: any, ... }
> = {
data?: ApolloClient$Data<TData>,
data?: ?TData,
context?: TContext,
...
} & GraphQL$ExecutionResult<TData, TExtensions>;
Expand Down

0 comments on commit efd3a7f

Please sign in to comment.