Type alias DebugEventArg<T>Internal

DebugEventArg<T>: {
    message: string;
    operation: Operation;
    type: T;
} & (T extends keyof DebugEventTypes
    ? {
        data: DebugEventTypes[T];
    }
    : {
        data?: any;
    })

Utility type that maps a debug event type to its payload.

Remarks

This is a utility type that determines the required payload for a given debug event, which is sent to the urql-devtools.

The payloads for known debug events are defined by the DebugEventTypes type, and each event additionally carries a human readable message with it, and the Operation for which the event is.

Type Parameters

Generated using TypeDoc