Skip to content

Commit

Permalink
fix: make button appearance fields optional
Browse files Browse the repository at this point in the history
  • Loading branch information
SocketSomeone committed Jan 13, 2024
1 parent e1a50ac commit 101cb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/necord-pagination-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PaginationAction } from '../enums';
export interface ButtonAppearance {
style: Exclude<ButtonStyle, ButtonStyle.Link>;
label: string;
emoji?: string;
emoji: string;
}

export interface ModalAppearance {
Expand All @@ -14,7 +14,7 @@ export interface ModalAppearance {
}

export type ButtonsAppearance = {
[key in PaginationAction]?: ButtonAppearance;
[key in PaginationAction]?: Partial<ButtonAppearance>;
};

export interface NecordPaginationOptions {
Expand Down

0 comments on commit 101cb4b

Please sign in to comment.