소스 검색

Added Mobile Shelf word structure

master
kj1352 4 년 전
부모
커밋
a7c4fafc38
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. +7
    -2
      models/shelf.ts

+ 7
- 2
models/shelf.ts 파일 보기

@@ -1,7 +1,7 @@
import { viewPermissionType } from "./variables";
import { Word } from "./word";
import { MobileWord, Word } from "./word";

interface ShelfWord {
export interface ShelfWord {
word: Word,
notes: Array<string>,
nextRevisionDateTime: Date,
@@ -25,6 +25,11 @@ export interface MongoShelf extends Omit<Shelf, "words"> {
words?: Array<MongoShelfWord>
}

export interface MobileShelfWord extends Omit<ShelfWord, "word"> {
word: MobileWord,
}

export interface MobileShelf extends Shelf {
_id: string,
words?: Array<MobileShelfWord>,
}

불러오는 중...
취소
저장