import { viewPermissionType } from "./variables"; import { Word } from "./word"; interface ShelfWord { word: Word, notes: Array, nextRevisionDateTime: Date, spaceBetweenRecall: number, // in Days isArchived: boolean, } export interface Shelf { name: string, description?: string, viewType: viewPermissionType, isArchived: boolean, words?: Array } export interface MongoShelfWord extends Omit { word: string, } export interface MongoShelf extends Omit { words?: Array } export interface MobileShelf extends Shelf { _id: string, }