@intisy/bayonet
    Preparing search index...

    Interface ServiceType<T>

    A service id paired, in the type system, with the contract that id promises.

    interface ServiceType<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.