aboutsummaryrefslogtreecommitdiff
path: root/src/cleaners/skyblock/fairysouls.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-26 13:17:48 -0500
committermat <github@matdoes.dev>2022-03-26 13:17:48 -0500
commit03537cf0cce0a19740c069c700374cafe176b3b5 (patch)
tree9ce3bd8911c04f8670b6baf504304763cd91325b /src/cleaners/skyblock/fairysouls.ts
parent6b94d0110a52a355758432ff6cd14c80553471ea (diff)
downloadskyblock-api-03537cf0cce0a19740c069c700374cafe176b3b5.tar.gz
skyblock-api-03537cf0cce0a19740c069c700374cafe176b3b5.tar.bz2
skyblock-api-03537cf0cce0a19740c069c700374cafe176b3b5.zip
Change a lot of things to use typed-hypixel-api
Diffstat (limited to 'src/cleaners/skyblock/fairysouls.ts')
-rw-r--r--src/cleaners/skyblock/fairysouls.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/fairysouls.ts b/src/cleaners/skyblock/fairysouls.ts
index 67de0dd..92b1eff 100644
--- a/src/cleaners/skyblock/fairysouls.ts
+++ b/src/cleaners/skyblock/fairysouls.ts
@@ -1,3 +1,4 @@
+import typedHypixelApi from 'typed-hypixel-api'
import * as constants from '../../constants.js'
export interface FairySouls {
@@ -9,7 +10,7 @@ export interface FairySouls {
max: number
}
-export async function cleanFairySouls(data: any): Promise<FairySouls> {
+export async function cleanFairySouls(data: typedHypixelApi.SkyBlockProfileMember): Promise<FairySouls> {
const { max_fairy_souls } = await constants.fetchConstantValues()
return {
total: data?.fairy_souls_collected ?? 0,