| 27 | }; |
| 28 | |
| 29 | export interface PresetConfig { |
| 30 | request?: (operation: Operation) => Promise<void> | void; |
| 31 | uri?: string | UriFunction; |
| 32 | credentials?: string; |
| 33 | headers?: any; |
| 34 | fetch?: WindowOrWorkerGlobalScope['fetch']; |
| 35 | fetchOptions?: HttpLink.Options; |
| 36 | clientState?: ClientStateConfig; |
| 37 | onError?: ErrorLink.ErrorHandler; |
| 38 | cacheRedirects?: CacheResolverMap; |
| 39 | cache?: ApolloCache<any>; |
| 40 | name?: string; |
| 41 | version?: string; |
| 42 | resolvers?: Resolvers | Resolvers[]; |
| 43 | typeDefs?: string | string[] | DocumentNode | DocumentNode[]; |
| 44 | fragmentMatcher?: LocalStateFragmentMatcher; |
| 45 | assumeImmutableResults?: boolean; |
| 46 | } |
| 47 | |
| 48 | // Yes, these are the exact same as the `PresetConfig` interface. We're |
| 49 | // defining these again so they can be used to verify that valid config |
nothing calls this directly
no outgoing calls
no test coverage detected