diff options
author | mat <github@matdoes.dev> | 2022-03-20 23:16:41 -0500 |
---|---|---|
committer | mat <github@matdoes.dev> | 2022-03-20 23:16:41 -0500 |
commit | 54972dc067f3d5a18368b0b820317d60ee321238 (patch) | |
tree | 28385381fc69aa1cb62c46a5b10726ba2fd60041 /src | |
parent | 68a0b0778dda3d8bd8bc1763c2370273d456326c (diff) | |
download | skyblock-api-54972dc067f3d5a18368b0b820317d60ee321238.tar.gz skyblock-api-54972dc067f3d5a18368b0b820317d60ee321238.tar.bz2 skyblock-api-54972dc067f3d5a18368b0b820317d60ee321238.zip |
Fix some typings
Diffstat (limited to 'src')
-rw-r--r-- | src/cleaners/skyblock/member.ts | 2 | ||||
-rw-r--r-- | src/hypixelCached.ts | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cleaners/skyblock/member.ts b/src/cleaners/skyblock/member.ts index 7c3ccd6..3430eac 100644 --- a/src/cleaners/skyblock/member.ts +++ b/src/cleaners/skyblock/member.ts @@ -14,7 +14,6 @@ import * as constants from '../../constants.js' import { Included } from '../../hypixel.js' import { CleanPlayer } from '../player.js' import { CleanRank } from '../rank.js' -import { Bank } from './bank.js' export interface CleanBasicMember { uuid: string @@ -22,6 +21,7 @@ export interface CleanBasicMember { lastSave: number firstJoin: number rank: CleanRank + left?: boolean } export interface CleanMember extends CleanBasicMember { 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, |