1 | import { ICommentInfo, IComment, ILikedByInformation } from "./types.js";
|
2 | import { IItemUpdateResult } from "../items/index.js";
|
3 | declare module "../clientside-pages/types" {
|
4 | interface _ClientsidePage {
|
5 | addComment(info: string | ICommentInfo): Promise<IComment & ICommentInfo>;
|
6 | getCommentById(id: string | number): Promise<IComment & ICommentInfo>;
|
7 | clearComments(): Promise<boolean>;
|
8 | getComments(): Promise<ICommentInfo[]>;
|
9 | like(): Promise<void>;
|
10 | unlike(): Promise<void>;
|
11 | getLikedByInformation(): Promise<ILikedByInformation>;
|
12 | enableComments(): Promise<IItemUpdateResult>;
|
13 | disableComments(): Promise<IItemUpdateResult>;
|
14 | setCommentsOn(on: boolean): Promise<IItemUpdateResult>;
|
15 | }
|
16 | interface IClientsidePage {
|
17 | |
18 |
|
19 |
|
20 |
|
21 |
|
22 | addComment(info: string | Partial<ICommentInfo>): Promise<IComment & ICommentInfo>;
|
23 | |
24 |
|
25 |
|
26 |
|
27 | getCommentById(id: string | number): Promise<IComment & ICommentInfo>;
|
28 | |
29 |
|
30 |
|
31 | clearComments(): Promise<boolean>;
|
32 | |
33 |
|
34 |
|
35 | getComments(): Promise<ICommentInfo[]>;
|
36 | |
37 |
|
38 |
|
39 | like(): Promise<void>;
|
40 | |
41 |
|
42 |
|
43 | unlike(): Promise<void>;
|
44 | |
45 |
|
46 |
|
47 | getLikedByInformation(): Promise<ILikedByInformation>;
|
48 | |
49 |
|
50 |
|
51 | enableComments(): Promise<IItemUpdateResult>;
|
52 | |
53 |
|
54 |
|
55 | disableComments(): Promise<IItemUpdateResult>;
|
56 | }
|
57 | }
|
58 |
|
\ | No newline at end of file |