createServiceRef()
Home > @backstage/backend-plugin-api
> createServiceRef
Creates a new service definition. This overload is used to create root scoped services.
Signature:
function createServiceRef<TService>(options: ServiceRefOptions<TService, 'root', 'singleton'>): ServiceRef<TService, 'root', 'singleton'>;
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
ServiceRefOptions<TService, 'root', 'singleton'> |
ServiceRef<TService, 'root', 'singleton'>