From ed397c5057c5145325a6335858160e0af3b8fad3 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sun, 3 Aug 2025 17:09:19 -0400 Subject: [PATCH] chore: add ts-expected-error (#1575) --- packages/opencode/src/plugin/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts index 4b38cb3b..198f69f0 100644 --- a/packages/opencode/src/plugin/index.ts +++ b/packages/opencode/src/plugin/index.ts @@ -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