/
githubmirror
/
react-hook-form
Обзор
Документация
Войти
/
githubmirror
/
react-hook-form
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/logic/getFocusFieldName.ts
12 строк
412 B
Beier (Bill)
🥷 chore: improve type import (#12879)
09 июн 2025, 08:51
Не верифицирован
09 июн 2025, 08:51
7ce7cc6
Код
Авторство
О чём код?
import type { FieldArrayMethodProps, InternalFieldName } from '../types'; import isUndefined from '../utils/isUndefined'; export default ( name: InternalFieldName, index: number, options: FieldArrayMethodProps = {}, ): string => options.shouldFocus || isUndefined(options.shouldFocus) ? options.focusName || `${name}.${isUndefined(options.focusIndex) ? index : options.focusIndex}.` : '';