@suluk/platform - v0.6.0
    Preparing search index...

    Interface Service<SO, BO>

    THE COMMON INTERFACE. SO = the service-opts value type, BO = the brand-opts value type (both Phase 2). A core service and a community service instantiate the exact same shape via defineService.

    interface Service<SO = {}, BO = {}> {
        id: string;
        registry?: string;
        mount: Mount;
        provision?: { symbol: string; from: string };
        contract?: { symbol: string; from: string };
        deps?: string[];
        env?: EnvVar[];
        serviceOpts?: Schema<SO>;
        brandOpts?: Schema<BO>;
        reads?: { globalService?: string[]; globalBrand?: string[] };
        compose?: CompositionSurface;
    }

    Type Parameters

    • SO = {}
    • BO = {}
    Index

    Properties

    id: string
    registry?: string
    mount: Mount
    provision?: { symbol: string; from: string }
    contract?: { symbol: string; from: string }

    the module's CONTRACT fragment — its RouteContract[] (ops), composed into src/contract.ops.ts (mirrors provision).

    deps?: string[]
    env?: EnvVar[]
    serviceOpts?: Schema<SO>
    brandOpts?: Schema<BO>
    reads?: { globalService?: string[]; globalBrand?: string[] }