-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.d.ts
44 lines (43 loc) · 966 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { CommentModel } from './comment_model'
import { CommentList } from './comment_list'
import Editor from '../../editor'
import { BasePluginOptions } from '../../editor'
import { IUser } from '../../../global'
export interface CommentOptions extends BasePluginOptions {
guid: string
container: HTMLElement
currentUser: IUser
currentFileId?: number
mentionUrl?: string
usePollingInsteadOfSocket?: {
interval: number
}
queryCommentOptions: {
url: string
method?: string
}
deleteCommentOptions: {
url: string
method?: string
}
closeCommentOptions: {
url: string
method?: string
}
createCommentOptions: {
url: string
method?: string
}
fetchLocaleSync?: Function
}
/**
* 评论数据层: CommentModel
* 评论列表显示层: CommentList
*/
export default class Comment {
constructor (opt: CommentOptions);
commentModel?: CommentModel
init (): void
initList (): CommentList
}
export {}