UNPKG

947 BTypeScriptView Raw
1import { IComments, ILikeData, ILikedByInformation } from "./types.js";
2declare 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 }
10 interface IItem {
11 readonly comments: IComments;
12 /**
13 * Gets the collection of people who have liked this item
14 */
15 getLikedBy(): Promise<ILikeData[]>;
16 /**
17 * Likes this client-side page as the current user
18 */
19 like(): Promise<void>;
20 /**
21 * Unlikes this client-side page as the current user
22 */
23 unlike(): Promise<void>;
24 /**
25 * Unlikes this item as the current user
26 */
27 getLikedByInformation(): Promise<ILikedByInformation>;
28 }
29}
30//# sourceMappingURL=item.d.ts.map
\No newline at end of file