mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-26 12:35:35 +02:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user