Changeset View
Changeset View
Standalone View
Standalone View
lib/types/avatar-types.js
Show All 19 Lines | export type AvatarDBContent = | ||||
| ImageAvatarDBContent | | ImageAvatarDBContent | ||||
| ENSAvatarDBContent; | | ENSAvatarDBContent; | ||||
export type UpdateUserAvatarRemoveRequest = { +type: 'remove' }; | export type UpdateUserAvatarRemoveRequest = { +type: 'remove' }; | ||||
export type UpdateUserAvatarRequest = | export type UpdateUserAvatarRequest = | ||||
| AvatarDBContent | | AvatarDBContent | ||||
| UpdateUserAvatarRemoveRequest; | | UpdateUserAvatarRemoveRequest; | ||||
export type ClientEmojiAvatar = EmojiAvatarDBContent; | |||||
export type ClientImageAvatar = { | |||||
+type: 'image', | |||||
+uri: string, | |||||
}; | |||||
export type ClientENSAvatar = ENSAvatarDBContent; | |||||
export type ClientAvatar = | |||||
| ClientEmojiAvatar | |||||
| ClientImageAvatar | |||||
| ClientENSAvatar; |