From 055ee61f56b6642ba48de7db11a2d550dbe10ca6 Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya Date: Sat, 10 Apr 2021 18:17:58 -0400 Subject: [PATCH] fix: fixed document extend type errors --- src/types.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/types.ts b/src/types.ts index 7771570..437f2a3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -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;