Created
December 17, 2016 19:04
-
-
Save juarezpaf/6833767a8a9fce38c33d2e14659fafd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'api/models/app-models' { | |
interface Chat { | |
id?: string; | |
title?: string; | |
picture?: string; | |
lastMessage?: Message; | |
} | |
interface Event { | |
$key?: string; | |
title?: string; | |
picture?: string; | |
friends?: number; | |
raffleDate?: Date; | |
eventDate?: string; | |
location?: string; | |
ownership?: boolean; | |
isFriendsChosen?: boolean; | |
} | |
interface Message { | |
id?: string; | |
eventId?: string; | |
userId?: string; | |
userName?: string; | |
userPicture?: string; | |
content?: string; | |
createdAt?: Date; | |
picture?: string; | |
} | |
interface User { | |
id?: string; | |
name?: string; | |
username?: string; | |
email?: string; | |
picture?: string; | |
gift?: string; | |
phone?: string; | |
birthday?: Date; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment