Skip to content

Commit

Permalink
Step 2.10: Added chat and message models
Browse files Browse the repository at this point in the history
  • Loading branch information
dotansimha committed Nov 27, 2016
1 parent a446c72 commit 543f5cf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions models/whatsapp-models.d.ts
@@ -0,0 +1,15 @@
declare module 'api/models/whatsapp-models' {
interface Chat {
_id?: string;
title?: string;
picture?: string;
lastMessage?: Message;
}

interface Message {
_id?: string;
chatId?: string;
content?: string;
createdAt?: Date;
}
}

0 comments on commit 543f5cf

Please sign in to comment.