UNPKG

839 BTypeScriptView Raw
1import { IdValue } from 'apollo-utilities';
2import { ReadStoreContext, FragmentMatcherInterface, IntrospectionResultData } from './types';
3export declare class HeuristicFragmentMatcher implements FragmentMatcherInterface {
4 constructor();
5 ensureReady(): Promise<void>;
6 canBypassInit(): boolean;
7 match(idValue: IdValue, typeCondition: string, context: ReadStoreContext): boolean | 'heuristic';
8}
9export declare class IntrospectionFragmentMatcher implements FragmentMatcherInterface {
10 private isReady;
11 private possibleTypesMap;
12 constructor(options?: {
13 introspectionQueryResultData?: IntrospectionResultData;
14 });
15 match(idValue: IdValue, typeCondition: string, context: ReadStoreContext): boolean;
16 private parseIntrospectionResult;
17}
18//# sourceMappingURL=fragmentMatcher.d.ts.map
\No newline at end of file