import { MobileShelf, Shelf } from "./shelf"; export interface Category { //_id is not needed as it is created by default name: string, icon: string, shelves?: Array, isArchived: boolean, } export interface MongoCategory extends Omit { shelves?: Array, // Shelf IDs } export interface MobileCategory extends Omit { _id: string, shelves?: Array }