(id: string)
| 92 | // ── Input arguments (declarations) ───────────────────────────────────────────── |
| 93 | |
| 94 | export function addArgument(id: string): void { |
| 95 | mutate( |
| 96 | id, |
| 97 | (fn) => ({ |
| 98 | ...fn, |
| 99 | arguments: [...fn.arguments, ensureUid({ name: `input${fn.arguments.length + 1}`, dataType: "string" })], |
| 100 | }), |
| 101 | true, |
| 102 | ); |
| 103 | } |
| 104 | |
| 105 | export function updateArgument(id: string, index: number, patch: Partial<ApiVariable>): void { |
| 106 | mutate( |
no test coverage detected