Fix build script type errors

This commit is contained in:
hensm
2022-08-15 15:08:14 +01:00
parent 31c49b1678
commit 403fa35af4
2 changed files with 2 additions and 2 deletions

View File

@@ -102,7 +102,7 @@ if (argv.mode === "production") {
/**
* Handle build results.
*
* @param {esbuild.BuildResult} result
* @param {esbuild.BuildResult | null} result
*/
function onBuildResult(result) {
if (result?.errors.length) {

View File

@@ -14,7 +14,7 @@ const esbuild = require("esbuild");
function* walk(rootPath) {
const pathsToWalk = [rootPath];
while (pathsToWalk.length > 0) {
const currentPath = pathsToWalk.pop();
const currentPath = /** @type {string} */ (pathsToWalk.pop());
if (fs.statSync(currentPath).isFile()) {
yield currentPath;
} else {