mlx-bun library API
    Preparing search index...

    What a module receives: only the services it declared in requires, scoped to it.

    interface ModuleContext<R extends CoreServiceName = CoreServiceName> {
        moduleId: string;
        services: Pick<CoreServices, R>;
        signal: AbortSignal;
    }

    Type Parameters

    Index
    moduleId: string
    services: Pick<CoreServices, R>
    signal: AbortSignal

    Aborts when the host stops the module.