You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 rivejä
655 B

  1. import { viewPermissionType } from "./variables";
  2. import { Word } from "./word";
  3. interface ShelfWord {
  4. word: Word,
  5. notes: Array<string>,
  6. nextRevisionDateTime: Date,
  7. spaceBetweenRecall: number, // in Days
  8. isArchived: boolean,
  9. }
  10. export interface Shelf {
  11. name: string,
  12. description?: string,
  13. viewType: viewPermissionType,
  14. isArchived: boolean,
  15. words?: Array<ShelfWord>
  16. }
  17. export interface MongoShelfWord extends Omit<ShelfWord, "word"> {
  18. word: string,
  19. }
  20. export interface MongoShelf extends Omit<Shelf, "words"> {
  21. words?: Array<MongoShelfWord>
  22. }
  23. export interface MobileShelf extends Shelf {
  24. _id: string,
  25. }