Skip to main content

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', 'multiton'>): ServiceRef<TService, 'root', 'multiton'>;

Parameters

Parameter

Type

Description

options

ServiceRefOptions<TService, 'root', 'multiton'>

**Returns:**

ServiceRef<TService, 'root', 'multiton'>