From db0ba8331befd12c4fb1a102d6b374f1d0654aa2 Mon Sep 17 00:00:00 2001 From: Jeffrey Su <41497174+sujeffreyl@users.noreply.github.com> Date: Tue, 20 Sep 2022 16:44:52 -0500 Subject: [PATCH] Fix findAll type signature --- src/narration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/narration.ts b/src/narration.ts index bbf8032d..a4a7a2b1 100644 --- a/src/narration.ts +++ b/src/narration.ts @@ -828,7 +828,7 @@ export default class Narration { // Also filters out imageDescriptions if we aren't supposed to be reading them. private findAll( expr: string, - container: HTMLElement, + container: HTMLElement | undefined = undefined, includeSelf: boolean = false ): HTMLElement[] { // querySelectorAll checks all the descendants