fix(lib): explicitly type 'words' as string[] to resolve TS build error
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user