@intisy/bayonet
    Preparing search index...

    Interface TopicType<T>

    An event topic paired, in the type system, with the payload it carries.

    interface TopicType<T> {
        __phantom?: T;
        id: string;
    }

    Type Parameters

    • T
    Index
    __phantom?: T

    Never present at run time. It exists so two keys parameterised differently cannot be interchanged.

    id: string

    The id itself, which is what crosses the boundary at run time.