diff --git a/src/renderer/components/InfoGrid.tsx b/src/renderer/components/InfoGrid.tsx index b88af92f..73fd0db7 100644 --- a/src/renderer/components/InfoGrid.tsx +++ b/src/renderer/components/InfoGrid.tsx @@ -1,7 +1,6 @@ import { Card, Divider, Grid, Stack } from '@mui/joy' import { isDayjs } from 'dayjs' import { PKM } from 'pokemon-files' -import { PluginPKM } from 'src/types/interfaces' import { ReactNode, useMemo } from 'react' type Breakpoint = 'xs' | 'sm' | 'md' | 'lg' | 'xl' @@ -28,7 +27,7 @@ function isArray(obj: object): obj is (object | Primitive)[] { return Object.prototype.toString.call(obj) === '[object Array]' } -function isPKM(obj: object): obj is (PKM | PluginPKM) { +function isPKM(obj: object): obj is PKM { return 'format' in obj } diff --git a/src/types/interfaces.ts b/src/types/interfaces.ts index 417cebaa..d12b1c01 100644 --- a/src/types/interfaces.ts +++ b/src/types/interfaces.ts @@ -1,5 +1,4 @@ import { AllPKMFields, Stats } from 'pokemon-files' -import { PK3RR } from './SAVTypes/radicalred/PK3RR' export interface OfficialPKMInterface extends PKMInterface { pluginIdentifier?: undefined @@ -17,7 +16,3 @@ export type PKMInterface = AllPKMFields & { pluginOrigin?: string isLocked?: boolean } - -export type PluginPKM = PK3RR - -export type PluginPKMType = typeof PK3RR