Sanity Library Reference Docs
    Preparing search index...

    Type Alias EventTopicDef<P, R>

    Declares a topic that delivers events and an optional reply.

    type EventTopicDef<P, R = never> = {
        kind: "event";
        payload: P;
        reply?: R;
    }

    Type Parameters

    • P
    • R = never
    Index

    Properties

    Properties

    kind: "event"
    payload: P
    reply?: R