Defined in: packages/react-form/src/FieldGroup/withFields.public.ts:222
loose: <TValue>() => LooseFieldGroupFieldSlot<TValue>;Defined in: packages/react-form/src/FieldGroup/withFields.public.ts:248
Declares a virtual field that can bind to form fields with an overlapping non-nullish value type instead of requiring an exact type match.
TValue
LooseFieldGroupFieldSlot<TValue>
const passwordFieldGroup = defineFieldGroup(({ loose }) => ({
password: loose<string>(),
confirmPassword: loose<string>(),
}))strict: <TValue>() => StrictFieldGroupFieldSlot<TValue>;Defined in: packages/react-form/src/FieldGroup/withFields.public.ts:235
Declares a virtual field whose value type must exactly match the value type of the concrete form field it binds to.
TValue
StrictFieldGroupFieldSlot<TValue>
const passwordFieldGroup = defineFieldGroup(({ strict }) => ({
password: strict<string>(),
confirmPassword: strict<string>(),
}))