UNPKG

722 BTypeScriptView Raw
1import { Cache, Reference, StoreObject, MissingTree } from "../../cache";
2import { OperationVariables } from "../../core";
3export interface UseFragmentOptions<TData, TVars> extends Omit<Cache.DiffOptions<TData, TVars>, "id" | "query" | "optimistic" | "previousResult">, Omit<Cache.ReadFragmentOptions<TData, TVars>, "id"> {
4 from: StoreObject | Reference | string;
5 optimistic?: boolean;
6}
7export interface UseFragmentResult<TData> {
8 data: TData | undefined;
9 complete: boolean;
10 missing?: MissingTree;
11}
12export declare function useFragment_experimental<TData = any, TVars = OperationVariables>(options: UseFragmentOptions<TData, TVars>): UseFragmentResult<TData>;
13//# sourceMappingURL=useFragment.d.ts.map
\No newline at end of file