Skip to content

Commit

Permalink
remove deprecations packages/core-plugin-api/src/apis/system/types.ts…
Browse files Browse the repository at this point in the history
…:38,55

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
  • Loading branch information
cmpadden committed Dec 16, 2021
1 parent 771b9c0 commit 6b69b44
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 32 deletions.
5 changes: 5 additions & 0 deletions .changeset/young-dodos-bake.md
@@ -0,0 +1,5 @@
---
'@backstage/core-plugin-api': patch
---

Remove deprecated types `ApiRefType` and `ApiRefsToTypes`
12 changes: 0 additions & 12 deletions packages/core-plugin-api/api-report.md
Expand Up @@ -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<{}>;
Expand Down
20 changes: 0 additions & 20 deletions packages/core-plugin-api/src/apis/system/types.ts
Expand Up @@ -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.
*
Expand Down

0 comments on commit 6b69b44

Please sign in to comment.