File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,14 @@ const nonInteractiveElementRoleSchemas = elementRoleEntries.reduce((accumulator:
33
33
accumulator . push ( elementSchema ) ;
34
34
}
35
35
return accumulator ;
36
- } , [ ] ) ;
36
+ } , [ ] ) as any [ ] ;
37
37
38
- const interactiveElementRoleSchemas = elementRoleEntries . reduce ( ( accumulator : any [ ] , [ elementSchema , roleSet ] : any ) => {
38
+ const interactiveElementRoleSchemas : any [ ] = elementRoleEntries . reduce ( ( accumulator : any [ ] , [ elementSchema , roleSet ] : any ) => {
39
39
if ( Array . from ( roleSet ) . some ( ( role ) : boolean => interactiveRoles . has ( role ) ) ) {
40
40
accumulator . push ( elementSchema ) ;
41
41
}
42
42
return accumulator ;
43
- } , [ ] ) ;
43
+ } , [ ] ) as any [ ] ;
44
44
45
45
const interactiveAXObjects = new Set ( Array . from ( AXObjects . keys ( ) ) . filter ( name => AXObjects . get ( name ) . type === 'widget' ) ) ;
46
46
@@ -49,7 +49,7 @@ const interactiveElementAXObjectSchemas = Array.from(elementAXObjects).reduce((a
49
49
accumulator . push ( elementSchema ) ;
50
50
}
51
51
return accumulator ;
52
- } , [ ] ) ;
52
+ } , [ ] ) as any [ ] ;
53
53
54
54
function checkIsInteractiveElement ( el : ElementAst ) : boolean {
55
55
function elementSchemaMatcher ( elementSchema ) {
You can’t perform that action at this time.
0 commit comments