From 51d3b8df2b568f51818708ef142cd6f439bd15d7 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 26 Apr 2026 16:40:20 +0300 Subject: [PATCH] Fix ts-nocheck in replace-weapon-names.ts --- scripts/replace-weapon-names.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/replace-weapon-names.ts b/scripts/replace-weapon-names.ts index 9acecec54..d141a5a09 100644 --- a/scripts/replace-weapon-names.ts +++ b/scripts/replace-weapon-names.ts @@ -1,5 +1,3 @@ -// @ts-nocheck - import fs from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; @@ -63,8 +61,8 @@ async function main() { continue; } - const weapon: any = weapons.find( - (weapon: any) => + const weapon = (weapons as Array<{ __RowId: string; Id: number }>).find( + (weapon) => file.includes(`${weapon.__RowId}.`) || file.includes(`${weapon.__RowId}_`), );