Skip to content

Instantly share code, notes, and snippets.

@juarezpaf
Created December 17, 2016 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juarezpaf/6833767a8a9fce38c33d2e14659fafd8 to your computer and use it in GitHub Desktop.
Save juarezpaf/6833767a8a9fce38c33d2e14659fafd8 to your computer and use it in GitHub Desktop.
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