From a7c4fafc387be611e9c4892dcf1f1ff00d65b31f Mon Sep 17 00:00:00 2001 From: kj1352 Date: Fri, 29 Oct 2021 14:59:07 +0530 Subject: [PATCH] Added Mobile Shelf word structure --- models/shelf.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/models/shelf.ts b/models/shelf.ts index 887ef17..51483e3 100644 --- a/models/shelf.ts +++ b/models/shelf.ts @@ -1,7 +1,7 @@ import { viewPermissionType } from "./variables"; -import { Word } from "./word"; +import { MobileWord, Word } from "./word"; -interface ShelfWord { +export interface ShelfWord { word: Word, notes: Array, nextRevisionDateTime: Date, @@ -25,6 +25,11 @@ export interface MongoShelf extends Omit { words?: Array } +export interface MobileShelfWord extends Omit { + word: MobileWord, +} + export interface MobileShelf extends Shelf { _id: string, + words?: Array, } \ No newline at end of file