From 6bfb1eb71daaa243dd0845226d21ae9547097cb2 Mon Sep 17 00:00:00 2001 From: Alexandr Date: Wed, 16 Aug 2023 04:41:48 +0300 Subject: [PATCH] Refactor: Move hide_border into common options --- src/cards/types.d.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/cards/types.d.ts b/src/cards/types.d.ts index 966964a5884c3..dce964d21af7e 100644 --- a/src/cards/types.d.ts +++ b/src/cards/types.d.ts @@ -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; @@ -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"; @@ -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; @@ -59,6 +56,5 @@ type WakaTimeOptions = CommonOptions & { }; export type GistCardOptions = CommonOptions & { - hide_border: boolean; show_owner: boolean; };