apollo-state-sync - API Reference (Users)
    Preparing search index...

    Type Alias CacheSyncMessageType<OperationName>

    The broadcast info about the cache operation. It contains the operation name and the arguments for the operation function call.

    type CacheSyncMessageType<
        OperationName extends
            CacheOperationsToSyncType = CacheOperationsToSyncType,
    > = {
        args: OperationName extends "write"
            ? [BroadcastWriteType]
            : Parameters<InMemoryCacheSyncedType[OperationName]>;
        operationName: OperationName;
    }

    Type Parameters

    Index
    args: OperationName extends "write"
        ? [BroadcastWriteType]
        : Parameters<InMemoryCacheSyncedType[OperationName]>
    operationName: OperationName