fix: fixed document extend type errors

This commit is contained in:
Rushil Umaretiya 2021-04-10 18:17:58 -04:00
parent 31966a8e65
commit 055ee61f56
No known key found for this signature in database
GPG Key ID: 4E8FAF9C926AF959

View File

@ -1,10 +1,10 @@
namespace Carpool {
export interface Group extends Document {
export interface Group {
id: string;
member_ids: string[];
}
export interface User extends Document {
export interface User {
id: string;
email: string;
username: string;
@ -12,15 +12,15 @@ namespace Carpool {
last_name: string;
}
export interface Comment extends Document {
export interface Comment {
id: string;
text: string;
body: string;
author_id: string;
}
export type Status = 'pending' | 'cancelled' | 'completed' | 'interrupted';
export interface Pool extends Document {
export interface Pool {
id: string;
title: string;
description: string;