chore: add ts-expected-error (#1575)

pull/1576/head
Yordis Prieto 2025-08-03 17:09:19 -04:00 committed by GitHub
parent c9187a9f3a
commit ed397c5057
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -63,8 +63,14 @@ export namespace Plugin {
if (!fn) return output
const path = fn.split(".")
for (const hook of await state().then((x) => x.hooks)) {
// @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
// give up.
// try-counter: 2
const fn = pathOr(hook, path, undefined)
if (!fn) continue
// @ts-expect-error if you feel adventurous, please fix the typing, make sure to bump the try-counter if you
// give up.
// try-counter: 2
await fn(input, output)
}
return output