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 authored and DAB0mB committed Dec 24, 2016
1 parent 33b904b commit 8bf7f9a
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 8bf7f9a

Please sign in to comment.