From a5c15a23e4b352b21c4e0fe8056c302436564107 Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Wed, 18 Feb 2026 12:21:25 -0500 Subject: [PATCH] core: allow readJson to be called without explicit type parameter Added default type parameter 'any' to readJson so users can call it without specifying a type when they don't need strict typing. This reduces boilerplate for quick JSON reads where type safety isn't required. --- packages/opencode/src/util/filesystem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/util/filesystem.ts b/packages/opencode/src/util/filesystem.ts index 5c63af030..d2f22be52 100644 --- a/packages/opencode/src/util/filesystem.ts +++ b/packages/opencode/src/util/filesystem.ts @@ -30,7 +30,7 @@ export namespace Filesystem { return readFile(p, "utf-8") } - export async function readJson(p: string): Promise { + export async function readJson(p: string): Promise { return JSON.parse(await readFile(p, "utf-8")) }