refactor: fix createProgressNode function jsdoc and enable ts-check (#3211)

This commit is contained in:
Alexandr Garbuzov
2023-09-12 10:24:07 +03:00
committed by GitHub
parent 47e6e56eb3
commit 8879c7fe2e
3 changed files with 8 additions and 4 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
// @ts-check
import { clampValue } from "./utils.js";
/**
@@ -8,7 +10,7 @@ import { clampValue } from "./utils.js";
* @param {number} createProgressNodeParams.y Y-axis position.
* @param {number} createProgressNodeParams.width Width of progress bar.
* @param {string} createProgressNodeParams.color Progress color.
* @param {string} createProgressNodeParams.progress Progress value.
* @param {number} createProgressNodeParams.progress Progress value.
* @param {string} createProgressNodeParams.progressBarBackgroundColor Progress bar bg color.
* @param {number} createProgressNodeParams.delay Delay before animation starts.
* @returns {string} Progress node.