Browse Source

added mobile category extension

master
prahalad 4 years ago
parent
commit
f4b5742e27
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      models/category.ts

+ 4
- 0
models/category.ts View File

@@ -9,4 +9,8 @@ export interface Category { //_id is not needed as it is created by default

export interface MongoCategory extends Omit<Category, 'shelves'> {
shelves?: Array<string>, // Shelf IDs
}

export interface MobileCategory extends MongoCategory {
_id: string,
}

Loading…
Cancel
Save