diff --git a/.changeset/remove-any-extension-data-ref.md b/.changeset/remove-any-extension-data-ref.md new file mode 100644 index 0000000000..b220f5b871 --- /dev/null +++ b/.changeset/remove-any-extension-data-ref.md @@ -0,0 +1,5 @@ +--- +'@backstage/frontend-plugin-api': minor +--- + +**BREAKING**: Removed the deprecated `AnyExtensionDataRef` type. Use `ExtensionDataRef` without type parameters instead. diff --git a/packages/frontend-plugin-api/report.api.md b/packages/frontend-plugin-api/report.api.md index 2a451f80e1..c38f158b25 100644 --- a/packages/frontend-plugin-api/report.api.md +++ b/packages/frontend-plugin-api/report.api.md @@ -138,9 +138,6 @@ export type AnyApiFactory = ApiFactory< // @public export type AnyApiRef = ApiRef; -// @public @deprecated (undocumented) -export type AnyExtensionDataRef = ExtensionDataRef; - // @public export type AnyRouteRefParams = | { @@ -1168,7 +1165,7 @@ export type ExtensionDataRef< }; // @public (undocumented) -export type ExtensionDataRefToValue = +export type ExtensionDataRefToValue = TDataRef extends ExtensionDataRef ? ExtensionDataValue : never; diff --git a/packages/frontend-plugin-api/src/wiring/createExtensionDataRef.ts b/packages/frontend-plugin-api/src/wiring/createExtensionDataRef.ts index 1bfbb01740..27b12deb84 100644 --- a/packages/frontend-plugin-api/src/wiring/createExtensionDataRef.ts +++ b/packages/frontend-plugin-api/src/wiring/createExtensionDataRef.ts @@ -34,17 +34,11 @@ export type ExtensionDataRef< }; /** @public */ -export type ExtensionDataRefToValue = +export type ExtensionDataRefToValue = TDataRef extends ExtensionDataRef ? ExtensionDataValue : never; -/** - * @deprecated Use `ExtensionDataRef` without type parameters instead. - * @public - */ -export type AnyExtensionDataRef = ExtensionDataRef; - /** @public */ export interface ConfigurableExtensionDataRef< TData, diff --git a/packages/frontend-plugin-api/src/wiring/index.ts b/packages/frontend-plugin-api/src/wiring/index.ts index 6ce1bb4998..3ca0be2757 100644 --- a/packages/frontend-plugin-api/src/wiring/index.ts +++ b/packages/frontend-plugin-api/src/wiring/index.ts @@ -31,7 +31,6 @@ export { } from './createExtensionInput'; export { createExtensionDataRef, - type AnyExtensionDataRef, type ExtensionDataRef, type ExtensionDataRefToValue, type ExtensionDataValue,