The open source coding agent.
TypeScript
chore: add ts-expected-error (#1575)
Yordis Prietoed397c5057c5
diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.tsindex 4b38cb3bb6e..198f69f0806 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 outputconst 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: 2const 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: 2await fn(input, output)}return output