aboutsummaryrefslogtreecommitdiff
path: root/src/hypixelCached.ts
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2022-03-20 23:16:41 -0500
committermat <github@matdoes.dev>2022-03-20 23:16:41 -0500
commit54972dc067f3d5a18368b0b820317d60ee321238 (patch)
tree28385381fc69aa1cb62c46a5b10726ba2fd60041 /src/hypixelCached.ts
parent68a0b0778dda3d8bd8bc1763c2370273d456326c (diff)
downloadskyblock-api-54972dc067f3d5a18368b0b820317d60ee321238.tar.gz
skyblock-api-54972dc067f3d5a18368b0b820317d60ee321238.tar.bz2
skyblock-api-54972dc067f3d5a18368b0b820317d60ee321238.zip
Fix some typings
Diffstat (limited to 'src/hypixelCached.ts')
-rw-r--r--src/hypixelCached.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hypixelCached.ts b/src/hypixelCached.ts
index f9bd53e..bc34ef0 100644
--- a/src/hypixelCached.ts
+++ b/src/hypixelCached.ts
@@ -10,6 +10,7 @@ import * as mojang from './mojang.js'
import NodeCache from 'node-cache'
import { debug } from './index.js'
import LRUCache from 'lru-cache'
+import { CleanBasicMember } from './cleaners/skyblock/member.js'
// cache usernames for 30 minutes
@@ -233,7 +234,7 @@ export async function fetchSkyblockProfiles(playerUuid: string): Promise<CleanPr
const basicProfile: CleanProfile = {
name: profile.name,
uuid: profile.uuid,
- members: profile.members?.map(m => {
+ members: profile.members?.map((m): CleanBasicMember => {
return {
uuid: m.uuid,
username: m.username,