Skip to content

Commit

Permalink
fix(acot-preset-wcag): fix type assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
wadackel committed Dec 29, 2020
1 parent c41598b commit 1a5b05a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default createRule<Options>({
const name = await node.evaluate(async (el) => {
const ax = await ((window as any).getComputedAccessibleNode(
el,
) as ComputedAccessibleNode);
) as Promise<ComputedAccessibleNode>);
return (ax?.name ?? '').trim();
});

Expand Down

0 comments on commit 1a5b05a

Please sign in to comment.