summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYordis Prieto <[email protected]>2025-08-03 17:09:19 -0400
committerGitHub <[email protected]>2025-08-03 17:09:19 -0400
commited397c5057c5145325a6335858160e0af3b8fad3 (patch)
treea7b35a300d69e1c39d5a678436e5d56cc8e0b0ca
parentc9187a9f3ab89ade99350dfc249edfd4d7332da6 (diff)
downloadopencode-ed397c5057c5145325a6335858160e0af3b8fad3.tar.gz
opencode-ed397c5057c5145325a6335858160e0af3b8fad3.zip
chore: add ts-expected-error (#1575)
-rw-r--r--packages/opencode/src/plugin/index.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts
index 4b38cb3bb..198f69f08 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