Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
  • Loading branch information
t3chguy committed Jan 7, 2025
1 parent 5bd4cfd commit 3d1ff7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/copy-res.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const argv = parseArgs(process.argv.slice(2), {});
const watch = argv.w;
const verbose = argv.v;

function errCheck(err?: Error): void {
function errCheck(err: unknown): void {
if (err) {
console.error(err.message);
console.error(err instanceof Error ? err.message : err);
process.exit(1);
}
}
Expand Down

0 comments on commit 3d1ff7e

Please sign in to comment.