Polarcraft/webv2/types/global.d.ts

35 lines
575 B
TypeScript
Raw Normal View History

2023-06-06 13:49:27 +02:00
import { Document } from 'mongoose'
export {}
declare global {
2023-06-06 13:49:27 +02:00
interface IUser extends Document {
_id: string,
username: string,
2023-06-06 13:49:27 +02:00
usernameType: string,
discord: {
id: string,
username: string,
avatarHash: string
},
minecraft?: {
uuid: string,
username: string
},
teamInvites: string[],
role: {
admin: boolean,
moderator: boolean,
},
teamId: string,
2023-06-05 10:17:35 +02:00
accessToken?: string
}
interface IWhitelist {
_id: string,
uuid: string,
connected: boolean,
code: string
}
}