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>(config: ServiceRefConfig<TService, 'root'>): ServiceRef<TService, 'root'>;
Parameters
Parameter | Type | Description |
---|---|---|
config | ServiceRefConfig<TService, 'root'> |
Returns:
ServiceRef<TService, 'root'>