| @@ -1,7 +1,7 @@ | |||||
| import { viewPermissionType } from "./variables"; | import { viewPermissionType } from "./variables"; | ||||
| import { Word } from "./word"; | |||||
| import { MobileWord, Word } from "./word"; | |||||
| interface ShelfWord { | |||||
| export interface ShelfWord { | |||||
| word: Word, | word: Word, | ||||
| notes: Array<string>, | notes: Array<string>, | ||||
| nextRevisionDateTime: Date, | nextRevisionDateTime: Date, | ||||
| @@ -25,6 +25,11 @@ export interface MongoShelf extends Omit<Shelf, "words"> { | |||||
| words?: Array<MongoShelfWord> | words?: Array<MongoShelfWord> | ||||
| } | } | ||||
| export interface MobileShelfWord extends Omit<ShelfWord, "word"> { | |||||
| word: MobileWord, | |||||
| } | |||||
| export interface MobileShelf extends Shelf { | export interface MobileShelf extends Shelf { | ||||
| _id: string, | _id: string, | ||||
| words?: Array<MobileShelfWord>, | |||||
| } | } | ||||