Skip to main content

createFieldPath()

function createFieldPath<T>(): FieldPath<T>;

Defined in: core/utils/field-path.ts:22

Создать FieldPath proxy для формы

Type Parameters

T

T

Returns

FieldPath<T>

Example

const path = createFieldPath<MyForm>();
console.log(path.email.__path); // 'email'
console.log(path.personalData.firstName.__path); // 'personalData.firstName'