forked from Viima/jquery-comments
/
current-user.ts
47 lines (47 loc) · 1.18 KB
/
current-user.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
45
46
47
export interface CurrentUser {
/**
* A `url` for a profile picture of the current user. Not required if Font Awesome is used.
*
* @default ''
* @example
* ```javascript
* const commentsElement = document.createElement('ax-comments');
* commentsElement.options = {
* // ...
* profilePictureURL: '/user_profiles/user-icon.png',
* // ...
* };
* ```
*/
profilePictureURL?: string;
/**
* A `boolean` value determining whether the current user is administrator.
*
* @default false
* @example
* ```javascript
* const commentsElement = document.createElement('ax-comments');
* commentsElement.options = {
* // ...
* currentUserIsAdmin: true,
* // ...
* };
* ```
*/
currentUserIsAdmin: boolean;
/**
* A `string` value of the current user's id.
*
* @default ''
* @example
* ```javascript
* const commentsElement = document.createElement('ax-comments');
* commentsElement.options = {
* // ...
* currentUserId: '1',
* // ...
* };
* ```
*/
currentUserId: string;
}