summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDax Raad <[email protected]>2025-07-31 16:54:15 -0400
committerDax Raad <[email protected]>2025-07-31 16:54:15 -0400
commitd558f15c919d16ab2515a7a49204c8a31b6b68c8 (patch)
tree398a5920469d397ed761ae1ce8a3c24b8a6e0bbf
parent614a23698fcbdf89d8e5ccfee68c42b70633e7b6 (diff)
downloadopencode-d558f15c919d16ab2515a7a49204c8a31b6b68c8.tar.gz
opencode-d558f15c919d16ab2515a7a49204c8a31b6b68c8.zip
ignore: ts optimization
-rw-r--r--packages/opencode/src/config/config.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts
index 7979fbf5d..ba7707dc8 100644
--- a/packages/opencode/src/config/config.ts
+++ b/packages/opencode/src/config/config.ts
@@ -321,7 +321,7 @@ export namespace Config {
export type Info = z.output<typeof Info>
export const global = lazy(async () => {
- let result = pipe(
+ let result: Info = pipe(
{},
mergeDeep(await load(path.join(Global.Path.config, "config.json"))),
mergeDeep(await load(path.join(Global.Path.config, "opencode.json"))),
@@ -346,7 +346,7 @@ export namespace Config {
return result
})
- async function load(configPath: string) {
+ async function load(configPath: string): Promise<Info> {
let text = await Bun.file(configPath)
.text()
.catch((err) => {