Sfoglia il codice sorgente

ignore: ts optimization

Dax Raad 8 mesi fa
parent
commit
d558f15c91
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      packages/opencode/src/config/config.ts

+ 2 - 2
packages/opencode/src/config/config.ts

@@ -321,7 +321,7 @@ export namespace Config {
   export type Info = z.output<typeof Info>
   export type Info = z.output<typeof Info>
 
 
   export const global = lazy(async () => {
   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, "config.json"))),
       mergeDeep(await load(path.join(Global.Path.config, "opencode.json"))),
       mergeDeep(await load(path.join(Global.Path.config, "opencode.json"))),
@@ -346,7 +346,7 @@ export namespace Config {
     return result
     return result
   })
   })
 
 
-  async function load(configPath: string) {
+  async function load(configPath: string): Promise<Info> {
     let text = await Bun.file(configPath)
     let text = await Bun.file(configPath)
       .text()
       .text()
       .catch((err) => {
       .catch((err) => {