Refactor: Top langs card: Fix returns tag in docstrings (#3036)

This commit is contained in:
Alexandr Garbuzov 2023-08-03 09:02:13 +03:00 committed by GitHub
parent e3e1495a53
commit 8e15656dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -668,7 +668,7 @@ const renderDonutLayout = (langs, width, totalLanguageSize) => {
* @param {string} props.color No languages data text color.
* @param {string} props.text No languages data translated text.
* @param {import("./types").TopLangOptions["layout"] | undefined} props.layout Card layout.
* @return {string} No languages data SVG node string.
* @returns {string} No languages data SVG node string.
*/
const noLanguagesDataNode = ({ color, text, layout }) => {
return `
@ -684,7 +684,7 @@ const noLanguagesDataNode = ({ color, text, layout }) => {
* @param {object} props Function properties.
* @param {import("./types").TopLangOptions["layout"]=} props.layout Input layout string.
* @param {boolean=} props.hide_progress Input hide_progress parameter value.
* @return {number} Default languages count for input layout.
* @returns {number} Default languages count for input layout.
*/
const getDefaultLanguagesCountByLayout = ({ layout, hide_progress }) => {
if (layout === "compact" || hide_progress === true) {