Browse Source

res_type: TResType;

visuddhinanda 2 years ago
parent
commit
9d4192947c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dashboard/src/components/api/Comment.ts

+ 2 - 1
dashboard/src/components/api/Comment.ts

@@ -1,4 +1,5 @@
 import { TContentType } from "../discussion/DiscussionCreate";
 import { TContentType } from "../discussion/DiscussionCreate";
+import { TResType } from "../discussion/DiscussionListCard";
 import { IUserApiData } from "./Auth";
 import { IUserApiData } from "./Auth";
 
 
 export interface ICommentRequest {
 export interface ICommentRequest {
@@ -17,7 +18,7 @@ export interface ICommentRequest {
 export interface ICommentApiData {
 export interface ICommentApiData {
   id: string;
   id: string;
   res_id: string;
   res_id: string;
-  res_type: string;
+  res_type: TResType;
   title?: string;
   title?: string;
   content?: string;
   content?: string;
   content_type?: TContentType;
   content_type?: TContentType;