Skip to content

Commit

Permalink
types - getters with merging have all props
Browse files Browse the repository at this point in the history
lastChance and pauseOptions getter will return values for all their props because of merging
  • Loading branch information
Nico105 committed Dec 25, 2021
1 parent b83ec6e commit c13507d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ declare module 'discord-giveaways' {
readonly embedColorEnd: ColorResolvable;
readonly botsCanWin: boolean;
readonly reaction: EmojiIdentifierResolvable;
readonly lastChance: LastChanceOptions;
readonly lastChance: Required<LastChanceOptions>;

// getters calculated using other values
readonly remainingTime: number;
Expand All @@ -164,7 +164,7 @@ declare module 'discord-giveaways' {
readonly exemptMembersFunction: Function | null;
readonly bonusEntries: BonusEntry[];
readonly data: GiveawayData;
readonly pauseOptions: PauseOptions;
readonly pauseOptions: Required<PauseOptions>;
readonly isDrop: boolean;

private ensureEndTimeout(): void;
Expand Down

0 comments on commit c13507d

Please sign in to comment.