release-2021-11-18 packages/core-plugin-api/src/apis/definitions/ErrorApi.ts:34,50

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
Colton Padden
2021-12-15 08:57:02 -05:00
parent f6722d2458
commit c24bae0085
3 changed files with 1 additions and 19 deletions
+1
View File
@@ -5,3 +5,4 @@
- Removed deprecated option `description` from `ApiRefConfig`
- Removed descriptions from all plugin API refs
- Removed deprecated parameters `path`, `icon`, and `title` in `createRouteRef`
- Removed deprecated types `Error` and `ErrorContext` from `ErrorApi`
-7
View File
@@ -395,10 +395,6 @@ export interface ElementCollection {
}): ElementCollection;
}
// @public @deprecated (undocumented)
type Error_2 = ErrorApiError;
export { Error_2 as Error };
// @public
export type ErrorApi = {
post(error: ErrorApiError, context?: ErrorApiErrorContext): void;
@@ -430,9 +426,6 @@ export type ErrorBoundaryFallbackProps = {
resetError: () => void;
};
// @public @deprecated (undocumented)
export type ErrorContext = ErrorApiErrorContext;
// @public
export type Extension<T> = {
expose(plugin: BackstagePlugin<any, any>): T;
@@ -29,12 +29,6 @@ export type ErrorApiError = {
stack?: string;
};
/**
* @public
* @deprecated Use ErrorApiError instead
*/
export type Error = ErrorApiError;
/**
* Provides additional information about an error that was posted to the application.
*
@@ -53,12 +47,6 @@ export type ErrorApiErrorContext = {
hidden?: boolean;
};
/**
* @public
* @deprecated Use ErrorApiErrorContext instead
*/
export type ErrorContext = ErrorApiErrorContext;
/**
* The error API is used to report errors to the app, and display them to the user.
*