error collection: review fixes
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -89,7 +89,7 @@ export interface ErrorCollector<TContext extends {} = {}> {
|
||||
AppErrorTypes[TCode]['context'],
|
||||
keyof TContext
|
||||
> extends infer IContext extends {}
|
||||
? [{}] extends [IContext]
|
||||
? {} extends IContext
|
||||
? {
|
||||
code: TCode;
|
||||
message: string;
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
|
||||
import { FrontendPluginInfo } from '@backstage/frontend-plugin-api';
|
||||
import { JSX, useEffect, useState } from 'react';
|
||||
// eslint-disable-next-line @backstage/no-relative-monorepo-imports
|
||||
// eslint-disable-next-line @backstage/no-relative-monorepo-imports
|
||||
import { AppError, AppErrorTypes } from '@backstage/frontend-app-api';
|
||||
|
||||
const DEFAULT_WARNING_CODES: Array<keyof AppErrorTypes> = [
|
||||
|
||||
Reference in New Issue
Block a user