gQuery/dist/index.d.ts
2021-10-22 09:24:32 -06:00

14 lines
591 B
TypeScript

export declare const gCache: {
subscribe: (this: void, run: import("svelte/store").Subscriber<{}>, invalidate?: (value?: {}) => void) => import("svelte/store").Unsubscriber;
set: (this: void, value: {}) => void;
update: (this: void, updater: import("svelte/store").Updater<{}>) => void;
hydrate: (newData: any) => Promise<void>;
};
interface CacheFunctionOptions {
update?: boolean;
}
export declare function gQuery(typename: any, { query, variables }: {
query: any;
variables: any;
}, { update }?: CacheFunctionOptions): Promise<void>;
export * from "./gFetch";