fix(lib): explicitly type 'words' as string[] to resolve TS build error

This commit is contained in:
Stanislaw Dzioba
2026-03-23 19:51:00 +01:00
parent 86edc3bf88
commit ea36008ad3

View File

@@ -211,8 +211,8 @@ export function parseScript(text: string): Statement[] {
continue; continue;
} }
const words = line.match(/(?:[^\s"]+|"[^"]*")+/g) || []; const words: string[] = line.match(/(?:[^\s"]+|"[^"]*")+/g) || [];
let cmd = words[0]; const cmd = words[0];
if (cmd === 'label') { if (cmd === 'label') {
statements.push({ statements.push({