Transforms data into User objects and back again. We added the UserParams interface to handle sending data back to the API in a uniform manner. We also modified the User object to store the user's language and theme for simplicity's sake, since the app state wants this information today.
12 lines
180 B
TypeScript
12 lines
180 B
TypeScript
interface User {
|
|
id: string
|
|
username: string
|
|
granblueId: string
|
|
avatar: {
|
|
picture: string
|
|
element: string
|
|
}
|
|
gender: number
|
|
language: string
|
|
theme: string
|
|
}
|