more jsdoc stuff

This commit is contained in:
BPplays
2025-01-09 19:09:55 -08:00
parent 5b5b9a91aa
commit f372e1a69d
2 changed files with 15 additions and 2 deletions

View File

@@ -748,8 +748,8 @@ export async function canResolve(name, useIPv6 = true, useIPv4 = true) {
/**
* converts string to boolean accepts 'true' or 'false' else it returns the string put in
* @param {string} str Input string
* @returns {boolean|string} boolean else original input string
* @param {string|null} str Input string or null
* @returns {boolean|string|null} boolean else original input string or null if input is
*/
export function stringToBool(str) {
if (str === 'true') return true;