diff options
Diffstat (limited to 'src/cleaners/skyblock/objectives.ts')
-rw-r--r-- | src/cleaners/skyblock/objectives.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/objectives.ts b/src/cleaners/skyblock/objectives.ts index 3427f1f..2443f77 100644 --- a/src/cleaners/skyblock/objectives.ts +++ b/src/cleaners/skyblock/objectives.ts @@ -1,9 +1,12 @@ +import typedHypixelApi from 'typed-hypixel-api' + + export interface Objective { name: string completed: boolean } -export function cleanObjectives(data: any): Objective[] { +export function cleanObjectives(data: typedHypixelApi.SkyBlockProfileMember): Objective[] { const rawObjectives = data?.objectives || {} const objectives: Objective[] = [] for (const rawObjectiveName in rawObjectives) { |