Defined in: FieldGroup/fieldGroupTypes.public.ts:259
Declares the virtual fields in a reusable field group and how their value types may bind to concrete form fields.
const profileFields = defineFieldGroup(({ strict, loose }) => ({
name: strict(''),
status: loose<string>(),
}))loose: {
<TValue> (value): LooseFieldGroupFieldSlot<TValue>;
<TValue> (): LooseFieldGroupFieldSlot<TValue>;
};Defined in: FieldGroup/fieldGroupTypes.public.ts:298
Declares a virtual field that can bind to form fields whose value type is assignable to the declared type.
<TValue>(value): LooseFieldGroupFieldSlot<TValue>;TValue
Inferred from the representative value.
TValue
A representative value used only for type inference.
LooseFieldGroupFieldSlot<TValue>
A field slot that uses assignable value-type matching.
<TValue>(): LooseFieldGroupFieldSlot<TValue>;TValue
The value type that compatible concrete field values must be assignable to.
LooseFieldGroupFieldSlot<TValue>
A field slot that uses assignable value-type matching.
const passwordFieldGroup = defineFieldGroup(({ loose }) => ({
password: loose<string>(),
confirmPassword: loose<string>(),
}))strict: {
<TValue> (value): StrictFieldGroupFieldSlot<TValue>;
<TValue> (): StrictFieldGroupFieldSlot<TValue>;
};Defined in: FieldGroup/fieldGroupTypes.public.ts:272
Declares a virtual field whose value type must exactly match the value type of the concrete form field it binds to.
<TValue>(value): StrictFieldGroupFieldSlot<TValue>;TValue
Inferred from the representative value.
TValue
A representative value used only for type inference.
StrictFieldGroupFieldSlot<TValue>
A field slot that uses strict value-type matching.
<TValue>(): StrictFieldGroupFieldSlot<TValue>;TValue
The value type the concrete form field must match exactly.
StrictFieldGroupFieldSlot<TValue>
A field slot that uses strict value-type matching.
const passwordFieldGroup = defineFieldGroup(({ strict }) => ({
password: strict<string>(),
confirmPassword: strict<string>(),
}))