fix: add types in comment

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei
2023-06-28 14:43:52 +08:00
parent f78ede78e7
commit 34d8d3f41b
2 changed files with 10 additions and 4 deletions

View File

@@ -1,9 +1,12 @@
export class CommentDto {
author!: string
export interface CommentDto {
author: string
text!: string
text: string
mail!: string
mail: string
url?: string
source?: 'github' | 'google'
avatar?: string
}

View File

@@ -21,11 +21,14 @@ export interface CommentModel extends BaseModel {
pin?: boolean
avatar: string
parent?: CommentModel | string
children: CommentModel[]
isWhispers?: boolean
location?: string
source?: string
}
export interface CommentRef {
id: string