fix: remove 8 more unnecessary as any casts in opencode core (#22877)

This commit is contained in:
Kit Langton
2026-04-16 15:27:53 -04:00
committed by GitHub
parent 219b473e66
commit 2fe9d94470
8 changed files with 16 additions and 13 deletions

View File

@@ -297,7 +297,9 @@ export const ProvidersLoginCommand = cmd({
prompts.intro("Add credential")
if (args.url) {
const url = args.url.replace(/\/+$/, "")
const wellknown = await fetch(`${url}/.well-known/opencode`).then((x) => x.json() as any)
const wellknown = (await fetch(`${url}/.well-known/opencode`).then((x) => x.json())) as {
auth: { command: string[]; env: string }
}
prompts.log.info(`Running \`${wellknown.auth.command.join(" ")}\``)
const proc = Process.spawn(wellknown.auth.command, {
stdout: "pipe",