@intisy/bayonet
    Preparing search index...

    Interface CapabilityType<T>

    A capability id paired, in the type system, with the implementation that id requires.

    The library that defines a category owns its key. This package deliberately mints none, which is what lets the api be reused by a project that has never heard of this ecosystem.

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