Skip to content

Commit f9f0c14

Browse files
committed
🐛 修复 readAttachment 返回类型断言
1 parent 3564676 commit f9f0c14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/service/content/gm_api/cat_agent_opfs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class CATAgentOPFSApi {
5959
const ctx = this as unknown as GMBaseContext;
6060
return ctx.sendMessage("CAT_agentOPFS", [
6161
{ action: "readAttachment", id, format, scriptUuid: ctx.scriptRes?.uuid || "" } as OPFSApiRequest,
62-
]) as Promise<{ id: string; blobUrl?: string; content?: string; size: number; mimeType?: string }>;
62+
]) as unknown as Promise<{ id: string; blobUrl?: string; content?: string; size: number; mimeType?: string }>;
6363
}
6464

6565
@GMContext.API({ follow: "CAT.agent.opfs" })

0 commit comments

Comments
 (0)