From 85be13c4ca9357fdb31e147afbefbc9aaf2b945a Mon Sep 17 00:00:00 2001 From: Refringe Date: Wed, 8 Jan 2025 21:41:25 -0500 Subject: [PATCH] Resolves HashUtil Type Issue The `generateCRC32ForFile` method now only accepts a `string` typed file path. --- project/src/utils/HashUtil.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/utils/HashUtil.ts b/project/src/utils/HashUtil.ts index bd1c4056f..aaac84d4b 100644 --- a/project/src/utils/HashUtil.ts +++ b/project/src/utils/HashUtil.ts @@ -37,7 +37,7 @@ export class HashUtil { return this.generateHashForData("sha1", data); } - public generateCRC32ForFile(filePath: fs.PathLike): number { + public generateCRC32ForFile(filePath: string): number { return crc32.unsigned(this.fileSystemSync.read(filePath)); }