Deprecate withApis in @backstage/frontend-plugin-api
Moved withApis to @backstage/core-compat-api and deprecated the export in @backstage/frontend-plugin-api, pointing users to the new location. Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com> Made-with: Cursor
This commit is contained in:
@@ -2313,7 +2313,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 {@link withApis} from `@backstage/core-compat-api` instead.
|
||||
* @public
|
||||
*/
|
||||
export function withApis<T extends {}>(apis: TypesToApiRefs<T>) {
|
||||
|
||||
Reference in New Issue
Block a user