(field: string, counterRef: CounterRef)
| 55 | } |
| 56 | |
| 57 | function nextFieldArrayKey(field: string, counterRef: CounterRef): string { |
| 58 | const next = counterRef.current; |
| 59 | counterRef.current += 1; |
| 60 | return `${field}_${next}`; |
| 61 | } |
| 62 | |
| 63 | function ensureFieldArrayKeys<T extends Record<string, unknown>>( |
| 64 | field: keyof T, |
no outgoing calls
no test coverage detected