Backstage
    Preparing search index...

    Interface ServiceRefOptions<TService, TScope, TInstances>

    interface ServiceRefOptions<
        TService,
        TScope extends "root" | "plugin",
        TInstances extends "singleton" | "multiton",
    > {
        id: string;
        multiton?: TInstances extends "multiton" ? true : false;
        scope?: TScope;
        defaultFactory?(
            service: ServiceRef<TService, TScope>,
        ): Promise<
            ServiceFactory<unknown, "plugin" | "root", "singleton" | "multiton">,
        >;
    }

    Type Parameters

    • TService
    • TScope extends "root" | "plugin"
    • TInstances extends "singleton" | "multiton"
    Index

    Properties

    id: string
    multiton?: TInstances extends "multiton" ? true : false
    scope?: TScope

    Methods