about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbinarycat <binarycat@envs.net>2025-03-24 18:24:07 -0500
committerbinarycat <binarycat@envs.net>2025-03-24 18:24:07 -0500
commit7f141985ff337926639db092b2ecb5b05a763cd7 (patch)
treeacc5119f4be1b16b247f317875e68c13d0694b60 /src
parentca514c1a13b419606fe051ec897a25a07dc7aa26 (diff)
downloadrust-7f141985ff337926639db092b2ecb5b05a763cd7.tar.gz
rust-7f141985ff337926639db092b2ecb5b05a763cd7.zip
search.js: use @type instead of @ts-expect-error
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/js/search.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/librustdoc/html/static/js/search.js b/src/librustdoc/html/static/js/search.js
index f714f361d4b..5dda3d34e10 100644
--- a/src/librustdoc/html/static/js/search.js
+++ b/src/librustdoc/html/static/js/search.js
@@ -3153,26 +3153,22 @@ class DocSearch {
                     }
                 }
             };
-            // @ts-expect-error
+            /** @type {string[]} */
             const type = [];
             onEachBtwn(
                 fnInputs,
-                // @ts-expect-error
                 fnType => writeFn(fnType, type),
                 // @ts-expect-error
                 () => pushText({ name: ", ",  highlighted: false }, type),
             );
-            // @ts-expect-error
             pushText({ name: " -> ", highlighted: false }, type);
             onEachBtwn(
                 fnOutput,
-                // @ts-expect-error
                 fnType => writeFn(fnType, type),
                 // @ts-expect-error
                 () => pushText({ name: ", ",  highlighted: false }, type),
             );
 
-            // @ts-expect-error
             return {type, mappedNames, whereClause};
         };