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:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/core-plugin-api': patch
|
||||
---
|
||||
|
||||
Remove deprecated types `ApiRefType` and `ApiRefsToTypes`
|
||||
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user