From 0c92fb267477ea418302fc558ee9dd3c59a97159 Mon Sep 17 00:00:00 2001 From: Jiang Bohan Date: Tue, 7 Apr 2026 15:25:29 +0800 Subject: [PATCH] fix(types): make AgentTrigger.config nullable to match API reality The API can return `config: null` for non-scheduled triggers, but the type was `Record` which doesn't reflect this. Update to `Record | null` so TypeScript catches unsafe access at compile time. Follow-up to #415. --- apps/web/shared/types/agent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/shared/types/agent.ts b/apps/web/shared/types/agent.ts index 9f596ab4..b478d101 100644 --- a/apps/web/shared/types/agent.ts +++ b/apps/web/shared/types/agent.ts @@ -36,7 +36,7 @@ export interface AgentTrigger { id: string; type: AgentTriggerType; enabled: boolean; - config: Record; + config: Record | null; } export interface AgentTask {