https://youtrack.weseek.co.jp/issue/GW-7910 - Remove unused imports - Change definition of bookmarks type in BookmarkFolderItems interface - Update type definition of parent and bookmarks in BookmarkFolderDocument interface
@@ -8,7 +8,7 @@ import {
} from 'reactstrap';
import { toastError, toastSuccess } from '~/client/util/apiNotification';
-import { apiv3Get, apiv3Post } from '~/client/util/apiv3-client';
+import { apiv3Post } from '~/client/util/apiv3-client';
import { useSWRBookmarkInfo } from '~/stores/bookmark';
import { useSWRxBookamrkFolderAndChild } from '~/stores/bookmark-folder';
import { useSWRxCurrentPage } from '~/stores/page';
@@ -7,7 +7,7 @@ import {
import { BookmarkFolderItems } from '~/interfaces/bookmark-info';
@@ -29,5 +29,5 @@ export interface BookmarkFolderItems {
name: string
parent: string
children: this[]
- bookmarks: [BookmarkedPage]
+ bookmarks: BookmarkedPage[]
}
@@ -21,8 +21,8 @@ export interface BookmarkFolderDocument extends Document {
_id: Types.ObjectId
owner: Types.ObjectId
- parent?: [this]
- bookmarks?: [Types.ObjectId]
+ parent?: this[]
+ bookmarks?: Types.ObjectId[]
export interface BookmarkFolderModel extends Model<BookmarkFolderDocument>{