@urql/devtools
Version:
The official exchange for use with Urql Devtools
18 lines (17 loc) • 700 B
TypeScript
import { DebugEventArg } from '@urql/core';
export declare const createDebugMessage: <T extends string>(debug: DebugEventArg<T>) => {
readonly type: "debug-event";
readonly source: "exchange";
readonly data: {
type: T;
message: string;
operation: import("@urql/core").Operation<any, any>;
} & (T extends "cacheHit" | "cacheInvalidation" | "fetchRequest" | "fetchSuccess" | "fetchError" | "retryRetrying" | "teardown" | "execution" | "update" | "error" ? {
data: import("@urql/core").DebugEventTypes[T];
} : {
data?: any;
}) & {
readonly source: "devtoolsExchange";
readonly timestamp: number;
};
};