您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

17 行
446 B

  1. import { MobileShelf, 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 Omit<Category, 'shelves'> {
  12. _id: string,
  13. shelves?: Array<MobileShelf>
  14. }