Updated TS types
This commit is contained in:
parent
3748c459f8
commit
ad4651844d
14
src/types.ts
14
src/types.ts
@ -145,6 +145,14 @@ export type CharacterType = {
|
||||
updatedAt: Date
|
||||
}
|
||||
|
||||
export type CharacterHair = {
|
||||
id: number
|
||||
name: string
|
||||
spriteId: string
|
||||
sprite: Sprite
|
||||
// @TODO: Do we need addedAt and updatedAt?
|
||||
}
|
||||
|
||||
export type Character = {
|
||||
id: number
|
||||
userId: number
|
||||
@ -163,6 +171,8 @@ export type Character = {
|
||||
zone: Zone
|
||||
characterTypeId: number | null
|
||||
characterType: CharacterType | null
|
||||
hairId: number | null
|
||||
hair: CharacterHair | null
|
||||
chats: Chat[]
|
||||
items: CharacterItem[]
|
||||
}
|
||||
@ -172,10 +182,6 @@ export type ZoneCharacter = {
|
||||
isMoving?: boolean
|
||||
}
|
||||
|
||||
export type ExtendedCharacter = Character & {
|
||||
isMoving?: boolean
|
||||
}
|
||||
|
||||
export type CharacterItem = {
|
||||
id: number
|
||||
characterId: number
|
||||
|
Loading…
x
Reference in New Issue
Block a user