Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Move hide_border into common options #3086

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
};
Loading