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<string, unknown>` which doesn't reflect this. Update
to `Record<string, unknown> | null` so TypeScript catches unsafe access
at compile time.

Follow-up to #415.
This commit is contained in:
Jiang Bohan 2026-04-07 15:25:29 +08:00
parent 7b610a4013
commit 0c92fb2674

View file

@ -36,7 +36,7 @@ export interface AgentTrigger {
id: string;
type: AgentTriggerType;
enabled: boolean;
config: Record<string, unknown>;
config: Record<string, unknown> | null;
}
export interface AgentTask {