Skip to content

Commit

Permalink
fix: fix VoteableData.userReports' type
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun committed Mar 13, 2021
1 parent 8df9f25 commit df5301d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/objects/voteable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,12 @@ export interface VoteableData extends ContentData {
/** The type of the subreddit this item was posted in. */
subredditType: SubredditType;

/** The current reports on this item that were made by users. */
userReports: string[];
/**
* The current reports on this item that were made by users.
*
* Each entry is of the form `[report, count]`.
*/
userReports: [string, number][];
}

/** The base for all content that you can vote on. */
Expand Down Expand Up @@ -232,7 +236,7 @@ export default abstract class Voteable extends Content implements VoteableData {
stickied: boolean;
subreddit: string;
subredditType: SubredditType;
userReports: string[];
userReports: [string, number][];

protected controls: VoteableControls;

Expand Down

0 comments on commit df5301d

Please sign in to comment.