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:
parent
7b610a4013
commit
0c92fb2674
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue