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.
8 lines
138 B
TypeScript
8 lines
138 B
TypeScript
interface UserParams {
|
|
username?: string
|
|
picture?: string
|
|
element?: string
|
|
language?: string
|
|
gender?: number
|
|
theme?: string
|
|
}
|