diff --git a/ts/a11y/explorer/KeyExplorer.ts b/ts/a11y/explorer/KeyExplorer.ts index ef52735d6..09afae118 100644 --- a/ts/a11y/explorer/KeyExplorer.ts +++ b/ts/a11y/explorer/KeyExplorer.ts @@ -1835,8 +1835,9 @@ function parse(tokens: string[]): SexpTree { * * @param {SexpTree} tree The sexpression tree. * @param {Map>} map The map to populate. + * @returns {Set} The descendant map. */ -function buildMap(tree: SexpTree, map: Map>) { +function buildMap(tree: SexpTree, map: Map>): Set { if (typeof tree === 'string') { if (!map.has(tree)) map.set(tree, new Set()); return new Set(); @@ -1860,6 +1861,7 @@ function buildMap(tree: SexpTree, map: Map>) { * * @param {Set} a Initial set. * @param {Set} b Set to remove from A. + * @returns {Set} The difference A\B. */ function setdifference(a: Set, b: Set): Set { if (!a) {