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