Преглед на файлове

Mobile category structural changes

master
kj1352 преди 4 години
родител
ревизия
a3da6aa108
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. +3
    -2
      models/category.ts

+ 3
- 2
models/category.ts Целия файл

@@ -1,4 +1,4 @@
import { Shelf } from "./shelf";
import { MobileShelf, Shelf } from "./shelf";

export interface Category { //_id is not needed as it is created by default
name: string,
@@ -11,6 +11,7 @@ export interface MongoCategory extends Omit<Category, 'shelves'> {
shelves?: Array<string>, // Shelf IDs
}

export interface MobileCategory extends Category {
export interface MobileCategory extends Omit<Category, 'shelves'> {
_id: string,
shelves?: Array<MobileShelf>
}

Зареждане…
Отказ
Запис