From ea36008ad33b9e08c45cf2195f34fcee0068719e Mon Sep 17 00:00:00 2001 From: Stanislaw Dzioba Date: Mon, 23 Mar 2026 19:51:00 +0100 Subject: [PATCH] fix(lib): explicitly type 'words' as string[] to resolve TS build error --- lib/vn-parser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vn-parser.ts b/lib/vn-parser.ts index 2c811fc..cc5d757 100644 --- a/lib/vn-parser.ts +++ b/lib/vn-parser.ts @@ -211,8 +211,8 @@ export function parseScript(text: string): Statement[] { continue; } - const words = line.match(/(?:[^\s"]+|"[^"]*")+/g) || []; - let cmd = words[0]; + const words: string[] = line.match(/(?:[^\s"]+|"[^"]*")+/g) || []; + const cmd = words[0]; if (cmd === 'label') { statements.push({