Backstage
Docs
Github
Preparing search index...
@backstage/backend-plugin-api
index
ServiceRefOptions
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
multiton?
scope?
Methods
default
Factory?
Properties
id
id
:
string
Optional
multiton
multiton
?:
TInstances
extends
"multiton"
?
true
:
false
Optional
scope
scope
?:
TScope
Methods
Optional
default
Factory
defaultFactory
?
(
service
:
ServiceRef
<
TService
,
TScope
>
,
)
:
Promise
<
ServiceFactory
<
unknown
,
"plugin"
|
"root"
,
"singleton"
|
"multiton"
>
,
>
Parameters
service
:
ServiceRef
<
TService
,
TScope
>
Returns
Promise
<
ServiceFactory
<
unknown
,
"plugin"
|
"root"
,
"singleton"
|
"multiton"
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
id
multiton
scope
Methods
default
Factory
Docs
Github
Backstage
Loading...