Merge pull request #33141 from backstage/rugvip/deprecate-withApis-frontend-plugin-api
Deprecate `withApis` in `@backstage/frontend-plugin-api`
This commit is contained in:
@@ -2312,7 +2312,7 @@ export const vmwareCloudAuthApiRef: ApiRef<
|
||||
SessionApi
|
||||
>;
|
||||
|
||||
// @public
|
||||
// @public @deprecated
|
||||
export function withApis<T extends {}>(
|
||||
apis: TypesToApiRefs<T>,
|
||||
): <TProps extends T>(
|
||||
|
||||
@@ -57,6 +57,7 @@ export function useApi<T>(apiRef: ApiRef<T>): T {
|
||||
* Wrapper for giving component an API context.
|
||||
*
|
||||
* @param apis - APIs for the context.
|
||||
* @deprecated Use `withApis` from `@backstage/core-compat-api` instead.
|
||||
* @public
|
||||
*/
|
||||
export function withApis<T extends {}>(apis: TypesToApiRefs<T>) {
|
||||
|
||||
Reference in New Issue
Block a user