CODEBASE: Fix lint errors 1 (#1732)

This commit is contained in:
catloversg
2024-11-04 13:35:14 +07:00
committed by GitHub
parent f7ee3a340f
commit f6502dd490
55 changed files with 252 additions and 255 deletions
+2 -2
View File
@@ -542,7 +542,7 @@ export const ns: InternalAPI<NSFull> = {
return [] as string[];
}
return runningScriptObj.logs.map((x) => "" + x);
return runningScriptObj.logs.map((x) => String(x));
},
tail:
(ctx) =>
@@ -1870,7 +1870,7 @@ function getFunctionNames(obj: object, prefix: string): string[] {
} else if (typeof value === "function") {
functionNames.push(prefix + key);
} else if (typeof value === "object") {
functionNames.push(...getFunctionNames(value, `${prefix}${key}.`));
functionNames.push(...getFunctionNames(value as object, `${prefix}${key}.`));
}
}
return functionNames;