Merge pull request #33144 from backstage/rugvip/remove-any-extension-data-ref
Remove deprecated `AnyExtensionDataRef` type
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/frontend-plugin-api': minor
|
||||
---
|
||||
|
||||
**BREAKING**: Removed the deprecated `AnyExtensionDataRef` type. Use `ExtensionDataRef` without type parameters instead.
|
||||
@@ -138,9 +138,6 @@ export type AnyApiFactory = ApiFactory<
|
||||
// @public
|
||||
export type AnyApiRef = ApiRef<unknown>;
|
||||
|
||||
// @public @deprecated (undocumented)
|
||||
export type AnyExtensionDataRef = ExtensionDataRef;
|
||||
|
||||
// @public
|
||||
export type AnyRouteRefParams =
|
||||
| {
|
||||
@@ -1168,7 +1165,7 @@ export type ExtensionDataRef<
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
export type ExtensionDataRefToValue<TDataRef extends AnyExtensionDataRef> =
|
||||
export type ExtensionDataRefToValue<TDataRef extends ExtensionDataRef> =
|
||||
TDataRef extends ExtensionDataRef<infer IData, infer IId, any>
|
||||
? ExtensionDataValue<IData, IId>
|
||||
: never;
|
||||
|
||||
@@ -34,17 +34,11 @@ export type ExtensionDataRef<
|
||||
};
|
||||
|
||||
/** @public */
|
||||
export type ExtensionDataRefToValue<TDataRef extends AnyExtensionDataRef> =
|
||||
export type ExtensionDataRefToValue<TDataRef extends ExtensionDataRef> =
|
||||
TDataRef extends ExtensionDataRef<infer IData, infer IId, any>
|
||||
? ExtensionDataValue<IData, IId>
|
||||
: never;
|
||||
|
||||
/**
|
||||
* @deprecated Use `ExtensionDataRef` without type parameters instead.
|
||||
* @public
|
||||
*/
|
||||
export type AnyExtensionDataRef = ExtensionDataRef;
|
||||
|
||||
/** @public */
|
||||
export interface ConfigurableExtensionDataRef<
|
||||
TData,
|
||||
|
||||
@@ -31,7 +31,6 @@ export {
|
||||
} from './createExtensionInput';
|
||||
export {
|
||||
createExtensionDataRef,
|
||||
type AnyExtensionDataRef,
|
||||
type ExtensionDataRef,
|
||||
type ExtensionDataRefToValue,
|
||||
type ExtensionDataValue,
|
||||
|
||||
Reference in New Issue
Block a user