From 7fb11f4109661deffac4a04a6a3366e2a123b658 Mon Sep 17 00:00:00 2001 From: antonk52 Date: Sat, 17 Feb 2024 14:05:34 +0000 Subject: [PATCH] return missing type for sets --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.js b/src/index.js index bc88187..045794a 100644 --- a/src/index.js +++ b/src/index.js @@ -174,6 +174,7 @@ module.exports.lilconfig = function lilconfig(name, options) { filepath: '', }; + /** @type {Set} */ const visited = new Set(); let dir = searchFrom; dirLoop: while (true) { @@ -332,6 +333,7 @@ module.exports.lilconfigSync = function lilconfigSync(name, options) { filepath: '', }; + /** @type {Set} */ const visited = new Set(); let dir = searchFrom; dirLoop: while (true) {