Skip to main content

Type alias: FieldPath

Ƭ FieldPath: string | (string | number)[]

The path to a field within the form state as either a string or an array.

const form = new FormState({  foo: {    bar: ['value'],  },}, ...);
// String pathform.getFieldValue('foo.bar[0]'); // 'value';
// Array pathform.getFieldValue(['foo', 'bar', 0]); // 'value';