refactor(cards): added typings for cards and fetchers (#1596)

* refactor(cards): added typings for cards and fetchers

* chore: move types to separate file
This commit is contained in:
Anurag Hazra
2022-02-23 20:15:01 +05:30
committed by GitHub
parent 8b9f9317d8
commit d57251cdf1
13 changed files with 325 additions and 49 deletions
+5 -5
View File
@@ -161,11 +161,11 @@ function flexLayout({ items, gap, direction, sizes = [] }) {
/**
* @typedef {object} CardColors
* @prop {string} title_color
* @prop {string} text_color
* @prop {string} icon_color
* @prop {string} bg_color
* @prop {string} border_color
* @prop {string?=} title_color
* @prop {string?=} text_color
* @prop {string?=} icon_color
* @prop {string?=} bg_color
* @prop {string?=} border_color
* @prop {keyof typeof import('../../themes')?=} fallbackTheme
* @prop {keyof typeof import('../../themes')?=} theme
*/