convert Message and MessageList to Typescript
Change-Id: Idbca1335dccbf910c2e1715769ff46c575472d00
diff --git a/common/src/Conversation.ts b/common/src/Conversation.ts
index b5ef9d7..5776c59 100644
--- a/common/src/Conversation.ts
+++ b/common/src/Conversation.ts
@@ -25,7 +25,27 @@
type ConversationInfos = Record<string, unknown>;
-export type Message = Record<string, string>;
+export type Message = {
+ id: string;
+ author: string;
+ timestamp: string;
+ type:
+ | 'application/call-history+json'
+ | 'application/data-transfer+json'
+ | 'application/update-profile'
+ | 'initial'
+ | 'member'
+ | 'merge'
+ | 'text/plain'
+ | 'vote';
+ linearizedParent: string;
+ parents: string;
+ body?: string;
+ duration?: string;
+ to?: string;
+ invited?: string;
+};
+
type ConversationRequest = PromiseExecutor<Message[]>;
type ConversationListeners = Record<