@types/relay-runtime
Version:
TypeScript definitions for relay-runtime
10 lines (8 loc) • 396 B
TypeScript
import { GraphQLResponse } from "../network/RelayNetworkTypes";
import { Variables } from "../util/RelayRuntimeTypes";
export default class RelayQueryResponseCache {
constructor(config: { size: number; ttl: number });
clear(): void;
get(queryID: string, variables: Variables): GraphQLResponse | null;
set(queryID: string, variables: Variables, payload: GraphQLResponse): void;
}