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
+6 -5
View File
@@ -1,3 +1,4 @@
// @ts-check
/**
* @param {number} value
*/
@@ -53,11 +54,11 @@ const getAnimations = () => {
/**
* @param {{
* titleColor: string;
* textColor: string;
* iconColor: string;
* show_icons: boolean;
* progress: number;
* titleColor?: string | string[]
* textColor?: string | string[]
* iconColor?: string | string[]
* show_icons?: boolean;
* progress?: number;
* }} args
*/
const getStyles = ({