remove deprecations packages/core-plugin-api/src/apis/system/types.ts:38,55

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
Colton Padden
2021-12-15 17:31:32 -05:00
parent 771b9c07fe
commit 6b69b44862
3 changed files with 5 additions and 32 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-plugin-api': patch
---
Remove deprecated types `ApiRefType` and `ApiRefsToTypes`
-12
View File
@@ -144,18 +144,6 @@ export type ApiRefConfig = {
description?: string;
};
// @public @deprecated
export type ApiRefsToTypes<
T extends {
[key in string]: ApiRef<unknown>;
},
> = {
[key in keyof T]: ApiRefType<T[key]>;
};
// @public @deprecated
export type ApiRefType<T> = T extends ApiRef<infer U> ? U : never;
// @public
export type AppComponents = {
NotFoundErrorPage: ComponentType<{}>;
@@ -31,33 +31,13 @@ export type ApiRef<T> = {
*/
export type AnyApiRef = ApiRef<unknown>;
/**
* Transforms ApiRef type into its inner API type.
*
* @public
* @deprecated unused type.
*/
export type ApiRefType<T> = T extends ApiRef<infer U> ? U : never;
/**
* Wraps a type with API properties into a type holding their respective {@link ApiRef}s.
* Reverse type transform of {@link ApiRefsToTypes}.
*
* @public
*/
export type TypesToApiRefs<T> = { [key in keyof T]: ApiRef<T[key]> };
/**
* Unwraps type with {@link ApiRef} properties into a type holding their respective API types.
* Reverse type transform of {@link TypesToApiRefs}.
*
* @public
* @deprecated unused type.
*/
export type ApiRefsToTypes<T extends { [key in string]: ApiRef<unknown> }> = {
[key in keyof T]: ApiRefType<T[key]>;
};
/**
* Provides lookup of APIs through their {@link ApiRef}s.
*