UNPKG

apollo-angular

Version:

Use your GraphQL data in your Angular app, with the Apollo Client

17 lines (16 loc) 634 B
import type { ApolloClient, TypedDocumentNode } from '@apollo/client'; export type EmptyObject = { [key: string]: any; }; export type ResultOf<T extends TypedDocumentNode> = T extends TypedDocumentNode<infer R> ? R : never; export type VariablesOf<T extends TypedDocumentNode> = T extends TypedDocumentNode<any, infer V> ? V : never; export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; export type NamedOptions = Record<string, ApolloClient.Options>; export type Flags = { /** * Observable starts with `{ loading: true }`. * * Disabled by default */ useMutationLoading?: boolean; };