Skip to main content
Version: Next

createServiceRef()

Home > @backstage/backend-plugin-api > createServiceRef

Creates a new service definition. This overload is used to create plugin scoped services.

Signature:

function createServiceRef<TService>(options: ServiceRefOptions<TService, 'plugin', 'multiton'>): ServiceRef<TService, 'plugin', 'multiton'>;

Parameters

Parameter

Type

Description

options

ServiceRefOptions<TService, 'plugin', 'multiton'>

**Returns:**

ServiceRef<TService, 'plugin', 'multiton'>