Skip to content

Commit

Permalink
fix: mark the 'approved' boolean as optional
Browse files Browse the repository at this point in the history
'approved' is only returned if you are able to moderate the content.
  • Loading branch information
thislooksfun committed Mar 26, 2021
1 parent 8f092d0 commit 0d71a50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/objects/voteable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export interface Gildings {
/** The base for all content that you can vote on. */
export interface VoteableData extends ContentData {
/** Whether or not this item was approved. */
approved: boolean;
approved?: boolean;

/**
* The unix timestamp of when this was approved.
Expand Down Expand Up @@ -230,7 +230,7 @@ export interface VoteableData extends ContentData {

/** The base for all content that you can vote on. */
export default abstract class Voteable extends Content implements VoteableData {
approved: boolean;
approved?: boolean;
approvedAtUtc: number | null;
approvedBy: string | null;
archived: boolean;
Expand Down

0 comments on commit 0d71a50

Please sign in to comment.