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:
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
4545const 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
5454function checkIsInteractiveElement ( el : ElementAst ) : boolean {
5555 function elementSchemaMatcher ( elementSchema ) {
You can’t perform that action at this time.
0 commit comments