Skip to content

Commit 0066e93

Browse files
committed
fix: 3.6 compile time errors
1 parent 27a46f1 commit 0066e93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/isInteractiveElement.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ const nonInteractiveElementRoleSchemas = elementRoleEntries.reduce((accumulator:
3333
accumulator.push(elementSchema);
3434
}
3535
return accumulator;
36-
}, []);
36+
}, []) as any[];
3737

38-
const interactiveElementRoleSchemas = elementRoleEntries.reduce((accumulator: any[], [elementSchema, roleSet]: any) => {
38+
const interactiveElementRoleSchemas: any[] = elementRoleEntries.reduce((accumulator: any[], [elementSchema, roleSet]: any) => {
3939
if (Array.from(roleSet).some((role): boolean => interactiveRoles.has(role))) {
4040
accumulator.push(elementSchema);
4141
}
4242
return accumulator;
43-
}, []);
43+
}, []) as any[];
4444

4545
const interactiveAXObjects = new Set(Array.from(AXObjects.keys()).filter(name => AXObjects.get(name).type === 'widget'));
4646

@@ -49,7 +49,7 @@ const interactiveElementAXObjectSchemas = Array.from(elementAXObjects).reduce((a
4949
accumulator.push(elementSchema);
5050
}
5151
return accumulator;
52-
}, []);
52+
}, []) as any[];
5353

5454
function checkIsInteractiveElement(el: ElementAst): boolean {
5555
function elementSchemaMatcher(elementSchema) {

0 commit comments

Comments
 (0)