Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc6dab8b

Browse files
authored
Fixed docstring for stats card create text node function to resolve type errors (anuraghazra#2689)
1 parent311204f commitc6dab8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎src/cards/stats-card.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,16 @@ const RANK_CARD_DEFAULT_WIDTH = 450;
2020
/**
2121
* Create a stats card text item.
2222
*
23-
*@param {object[]} createTextNodeParams Object that contains the createTextNode parameters.
23+
*@param {object} createTextNodeParams Object that contains the createTextNode parameters.
24+
*@param {string} createTextNodeParams.icon The icon to display.
2425
*@param {string} createTextNodeParams.label The label to display.
25-
*@param {string} createTextNodeParams.value The value to display.
26+
*@param {number} createTextNodeParams.value The value to display.
2627
*@param {string} createTextNodeParams.id The id of the stat.
2728
*@param {number} createTextNodeParams.index The index of the stat.
2829
*@param {boolean} createTextNodeParams.showIcons Whether to show icons.
2930
*@param {number} createTextNodeParams.shiftValuePos Number of pixels the value has to be shifted to the right.
3031
*@param {boolean} createTextNodeParams.bold Whether to bold the label.
32+
*@param {string} createTextNodeParams.number_format The format of numbers on card.
3133
*@returns
3234
*/
3335
constcreateTextNode=({

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp