Explorar el Código

added mobile category extension

master
prahalad hace 4 años
padre
commit
f4b5742e27
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      models/category.ts

+ 4
- 0
models/category.ts Ver fichero

@@ -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,
}

Cargando…
Cancelar
Guardar