Skip to content

Commit c1e0c1c

Browse files
committed
Add missing JSDoc @returns
1 parent 27c47f3 commit c1e0c1c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ts/a11y/explorer/KeyExplorer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1835,8 +1835,9 @@ function parse(tokens: string[]): SexpTree {
18351835
*
18361836
* @param {SexpTree} tree The sexpression tree.
18371837
* @param {Map<string, Set<string>>} map The map to populate.
1838+
* @returns {Set<string>} The descendant map.
18381839
*/
1839-
function buildMap(tree: SexpTree, map: Map<string, Set<string>>) {
1840+
function buildMap(tree: SexpTree, map: Map<string, Set<string>>): Set<string> {
18401841
if (typeof tree === 'string') {
18411842
if (!map.has(tree)) map.set(tree, new Set());
18421843
return new Set();
@@ -1860,6 +1861,7 @@ function buildMap(tree: SexpTree, map: Map<string, Set<string>>) {
18601861
*
18611862
* @param {Set<string>} a Initial set.
18621863
* @param {Set<string>} b Set to remove from A.
1864+
* @returns {Set<string>} The difference A\B.
18631865
*/
18641866
function setdifference(a: Set<string>, b: Set<string>): Set<string> {
18651867
if (!a) {

0 commit comments

Comments
 (0)