Skip to content

Commit

Permalink
remove unnecessary types
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewbenington committed Nov 17, 2024
1 parent 66890e8 commit 88885db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
3 changes: 1 addition & 2 deletions src/renderer/components/InfoGrid.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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
}

Expand Down
5 changes: 0 additions & 5 deletions src/types/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AllPKMFields, Stats } from 'pokemon-files'
import { PK3RR } from './SAVTypes/radicalred/PK3RR'

export interface OfficialPKMInterface extends PKMInterface {
pluginIdentifier?: undefined
Expand All @@ -17,7 +16,3 @@ export type PKMInterface = AllPKMFields & {
pluginOrigin?: string
isLocked?: boolean
}

export type PluginPKM = PK3RR

export type PluginPKMType = typeof PK3RR

0 comments on commit 88885db

Please sign in to comment.