Skip to content

Commit

Permalink
Refactor: Move hide_border into common options (anuraghazra#3086)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 committed Dec 22, 2023
1 parent 7ede45a commit 422208c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cards/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export type CommonOptions = {
border_radius: number;
border_color: string;
locale: string;
hide_border: boolean;
};

export type StatCardOptions = CommonOptions & {
hide: string[];
show_icons: boolean;
hide_title: boolean;
hide_border: boolean;
card_width: number;
hide_rank: boolean;
include_all_commits: boolean;
Expand All @@ -31,13 +31,11 @@ export type StatCardOptions = CommonOptions & {
};

export type RepoCardOptions = CommonOptions & {
hide_border: boolean;
show_owner: boolean;
};

export type TopLangOptions = CommonOptions & {
hide_title: boolean;
hide_border: boolean;
card_width: number;
hide: string[];
layout: "compact" | "normal" | "donut" | "donut-vertical" | "pie";
Expand All @@ -49,7 +47,6 @@ export type TopLangOptions = CommonOptions & {

type WakaTimeOptions = CommonOptions & {
hide_title: boolean;
hide_border: boolean;
hide: string[];
line_height: string;
hide_progress: boolean;
Expand All @@ -59,6 +56,5 @@ type WakaTimeOptions = CommonOptions & {
};

export type GistCardOptions = CommonOptions & {
hide_border: boolean;
show_owner: boolean;
};

0 comments on commit 422208c

Please sign in to comment.