Here we extracted the common methods used in pages into utils and included them, getting rid of a lot of duplicate code in the process.
21 lines
501 B
TypeScript
21 lines
501 B
TypeScript
export type SearchableObject = Character | Weapon | Summon | JobSkill
|
|
export type SearchableObjectArray = (Character | Weapon | Summon | JobSkill)[]
|
|
export type JobSkillObject = {
|
|
[key: number]: JobSkill | undefined
|
|
0: JobSkill | undefined
|
|
1: JobSkill | undefined
|
|
2: JobSkill | undefined
|
|
3: JobSkill | undefined
|
|
}
|
|
|
|
export type FilterObject = {
|
|
raid?: string
|
|
element?: number
|
|
recency?: number
|
|
}
|
|
|
|
export type PaginationObject = {
|
|
count: number
|
|
totalPages: number
|
|
perPage: number
|
|
}
|