Skip to content

Commit 8c8c5eb

Browse files
authored
Merge pull request #1371 from mathjax/fix/lint
Add missing JSDoc @returns
2 parents c9a7e74 + c1e0c1c commit 8c8c5eb

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
@@ -1956,8 +1956,9 @@ function parse(tokens: string[]): SexpTree {
19561956
*
19571957
* @param {SexpTree} tree The sexpression tree.
19581958
* @param {Map<string, Set<string>>} map The map to populate.
1959+
* @returns {Set<string>} The descendant map.
19591960
*/
1960-
function buildMap(tree: SexpTree, map: Map<string, Set<string>>) {
1961+
function buildMap(tree: SexpTree, map: Map<string, Set<string>>): Set<string> {
19611962
if (typeof tree === 'string') {
19621963
if (!map.has(tree)) map.set(tree, new Set());
19631964
return new Set();
@@ -1981,6 +1982,7 @@ function buildMap(tree: SexpTree, map: Map<string, Set<string>>) {
19811982
*
19821983
* @param {Set<string>} a Initial set.
19831984
* @param {Set<string>} b Set to remove from A.
1985+
* @returns {Set<string>} The difference A\B.
19841986
*/
19851987
function setdifference(a: Set<string>, b: Set<string>): Set<string> {
19861988
if (!a) {

0 commit comments

Comments
 (0)