25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

category.ts 388 B

4 yıl önce
4 yıl önce
12345678910111213141516
  1. import { Shelf } from "./shelf";
  2. export interface Category { //_id is not needed as it is created by default
  3. name: string,
  4. icon: string,
  5. shelves?: Array<Shelf>,
  6. isArchived: boolean,
  7. }
  8. export interface MongoCategory extends Omit<Category, 'shelves'> {
  9. shelves?: Array<string>, // Shelf IDs
  10. }
  11. export interface MobileCategory extends MongoCategory {
  12. _id: string,
  13. }