Skip to content

Commit

Permalink
fix: 3.6 compile time errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mgechev committed Oct 22, 2019
1 parent 27a46f1 commit 0066e93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util/isInteractiveElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const nonInteractiveElementRoleSchemas = elementRoleEntries.reduce((accumulator:
accumulator.push(elementSchema);
}
return accumulator;
}, []);
}, []) as any[];

const interactiveElementRoleSchemas = elementRoleEntries.reduce((accumulator: any[], [elementSchema, roleSet]: any) => {
const interactiveElementRoleSchemas: any[] = elementRoleEntries.reduce((accumulator: any[], [elementSchema, roleSet]: any) => {
if (Array.from(roleSet).some((role): boolean => interactiveRoles.has(role))) {
accumulator.push(elementSchema);
}
return accumulator;
}, []);
}, []) as any[];

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

Expand All @@ -49,7 +49,7 @@ const interactiveElementAXObjectSchemas = Array.from(elementAXObjects).reduce((a
accumulator.push(elementSchema);
}
return accumulator;
}, []);
}, []) as any[];

function checkIsInteractiveElement(el: ElementAst): boolean {
function elementSchemaMatcher(elementSchema) {
Expand Down

0 comments on commit 0066e93

Please sign in to comment.