UNPKG

@incubrain/client

Version:

A type-safe GraphQL client for Hasura, optimized for Node.js and Nuxt environments with full TypeScript support.

12 lines (11 loc) 406 B
import { ClientPlugin, RequestConfig, CachePluginConfig } from "../types"; export declare class CachePlugin implements ClientPlugin { name: string; private cache; private config; constructor(config?: CachePluginConfig); beforeRequest(config: RequestConfig): RequestConfig; afterRequest(response: any, config: RequestConfig): any; private getCacheKey; private shouldCache; }