Backstage
Docs
Github
Preparing search index...
@backstage/frontend-plugin-api
withApis
Function withApis
withApis
<
T
extends
{}
>
(
apis
:
TypesToApiRefs
<
T
>
,
)
:
<
TProps
extends
{}
>
(
WrappedComponent
:
ComponentType
<
TProps
>
,
)
=>
{
displayName
:
string
;
(
props
:
PropsWithChildren
<
Omit
<
TProps
,
keyof
T
>
>
)
:
Element
;
}
Wrapper for giving component an API context.
Type Parameters
T
extends
{}
Parameters
apis
:
TypesToApiRefs
<
T
>
APIs for the context.
Returns
<
TProps
extends
{}
>
(
WrappedComponent
:
ComponentType
<
TProps
>
,
)
=>
{
displayName
:
string
;
(
props
:
PropsWithChildren
<
Omit
<
TProps
,
keyof
T
>
>
)
:
Element
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Docs
Github
Backstage
Loading...
Wrapper for giving component an API context.