1 | import { IComments, ILikeData, ILikedByInformation, RatingValues } from "./types.js";
|
2 | declare module "../items/types" {
|
3 | interface _Item {
|
4 | readonly comments: IComments;
|
5 | getLikedBy(): Promise<ILikeData[]>;
|
6 | like(): Promise<void>;
|
7 | unlike(): Promise<void>;
|
8 | getLikedByInformation(): Promise<ILikedByInformation>;
|
9 | rate(rating: RatingValues): Promise<number>;
|
10 | }
|
11 | interface IItem {
|
12 | readonly comments: IComments;
|
13 | |
14 |
|
15 |
|
16 | getLikedBy(): Promise<ILikeData[]>;
|
17 | |
18 |
|
19 |
|
20 | like(): Promise<void>;
|
21 | |
22 |
|
23 |
|
24 | unlike(): Promise<void>;
|
25 | |
26 |
|
27 |
|
28 | getLikedByInformation(): Promise<ILikedByInformation>;
|
29 | |
30 |
|
31 |
|
32 |
|
33 |
|
34 | rate(rating: RatingValues): Promise<number>;
|
35 | }
|
36 | }
|
37 |
|
\ | No newline at end of file |