@@ -661,13 +661,18 @@ const renderDonutLayout = (langs, width, totalLanguageSize) => {
661
661
` ;
662
662
} ;
663
663
664
+ /**
665
+ * @typedef {import("./types").TopLangOptions } TopLangOptions
666
+ * @typedef {TopLangOptions["layout"] } Layout
667
+ */
668
+
664
669
/**
665
670
* Creates the no languages data SVG node.
666
671
*
667
672
* @param {object } props Object with function properties.
668
673
* @param {string } props.color No languages data text color.
669
674
* @param {string } props.text No languages data translated text.
670
- * @param {import("./types").TopLangOptions["layout"] | undefined } props.layout Card layout.
675
+ * @param {Layout | undefined } props.layout Card layout.
671
676
* @returns {string } No languages data SVG node string.
672
677
*/
673
678
const noLanguagesDataNode = ( { color, text, layout } ) => {
@@ -682,7 +687,7 @@ const noLanguagesDataNode = ({ color, text, layout }) => {
682
687
* Get default languages count for provided card layout.
683
688
*
684
689
* @param {object } props Function properties.
685
- * @param {import("./types").TopLangOptions["layout"] = } props.layout Input layout string.
690
+ * @param {Layout = } props.layout Input layout string.
686
691
* @param {boolean= } props.hide_progress Input hide_progress parameter value.
687
692
* @returns {number } Default languages count for input layout.
688
693
*/
@@ -700,11 +705,15 @@ const getDefaultLanguagesCountByLayout = ({ layout, hide_progress }) => {
700
705
}
701
706
} ;
702
707
708
+ /**
709
+ * @typedef {import('../fetchers/types').TopLangData } TopLangData
710
+ */
711
+
703
712
/**
704
713
* Renders card that display user's most frequently used programming languages.
705
714
*
706
- * @param {import('../fetchers/types'). TopLangData } topLangs User's most frequently used programming languages.
707
- * @param {Partial<import("./types"). TopLangOptions> } options Card options.
715
+ * @param {TopLangData } topLangs User's most frequently used programming languages.
716
+ * @param {Partial<TopLangOptions> } options Card options.
708
717
* @returns {string } Language card SVG object.
709
718
*/
710
719
const renderTopLanguages = ( topLangs , options = { } ) => {
0 commit comments