(idx: number, options: Record<string, unknown>)
| 98 | } |
| 99 | |
| 100 | const updateOptions = (idx: number, options: Record<string, unknown>) => { |
| 101 | onChange(guards.map((g, i) => (i === idx ? { ...g, options } : g))) |
| 102 | } |
| 103 | |
| 104 | const availableTypes = guardTypes.filter((t) => !guards.some((g) => g.type === t.type)) |
| 105 |