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;
|
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({
|
||||||
|
|||||||
Reference in New Issue
Block a user