diff --git a/lib/types/avatar-types.js b/lib/types/avatar-types.js new file mode 100644 --- /dev/null +++ b/lib/types/avatar-types.js @@ -0,0 +1,14 @@ +// @flow + +export type EmojiAvatarDBContent = { + +type: 'emoji', + +emoji: string, + +color: string, // hex, WITH "#" prefix +}; + +export type ImageAvatarDBContent = { + +type: 'image', + +uploadID: string, +}; + +export type AvatarDBContent = EmojiAvatarDBContent | ImageAvatarDBContent;