Add User and Party types

This commit is contained in:
Justin Edmund 2022-02-27 00:35:05 -08:00
parent 0c19d9c929
commit 3b4b8ecc1a
3 changed files with 18 additions and 15 deletions

View file

@ -7,21 +7,6 @@ import ProfileHeader from '~components/ProfileHeader'
import GridRep from '~components/GridRep'
import GridRepCollection from '~components/GridRepCollection'
interface User {
id: string
username: string
granblueId: number
}
interface Party {
id: string
name: string
raid: Raid
shortcode: string
weapons: GridWeapon[]
updated_at: string
}
const ProfileRoute: React.FC = () => {
const router = useRouter()
const { username } = router.query

13
types/Party.d.ts vendored Normal file
View file

@ -0,0 +1,13 @@
interface Party {
id: string
name: string
raid: Raid
shortcode: string
extra: boolean
characters: Array<GridCharacter>
weapons: Array<GridWeapon>
summons: Array<GridSummon>
user: User
created_at: string
updated_at: string
}

5
types/User.d.ts vendored Normal file
View file

@ -0,0 +1,5 @@
interface User {
id: string
username: string
granblueId: number
}