From 5f2e517c0038397e12c72ef322313443c25e7907 Mon Sep 17 00:00:00 2001 From: Kaelig Deloumeau-Prigent Date: Mon, 27 Sep 2021 07:33:16 -0700 Subject: [PATCH] fix(typescript): allow passing a NodeList to ElementContext (#3161) As per the spec, the context parameter can be passed one of the following: > A `NodeList` such as returned by `document.querySelectorAll`. Source: https://www.deque.com/axe/core-documentation/api-documentation/#context-parameter --- axe.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axe.d.ts b/axe.d.ts index f0ba24b635..8554f4381d 100644 --- a/axe.d.ts +++ b/axe.d.ts @@ -56,7 +56,7 @@ declare namespace axe { type RunCallback = (error: Error, results: AxeResults) => void; - type ElementContext = Node | string | ContextObject; + type ElementContext = Node | NodeList | string | ContextObject; interface TestEngine { name: string;