Home > @i2analyze/i2connect > utility > FormConditions
utility.FormConditions type
A utility type that determines the callback condition key-value pairs for a given form.
Signature:
type FormConditions<TForm extends services.BasicForm> = {
[K in keyof TForm]: TForm[K]['isMandatory'] extends true ? TForm[K]['hide'] extends services.HidePredicate ? FormConditionLogicalTypeValueMap[TForm[K]['logicalType']] | undefined : FormConditionLogicalTypeValueMap[TForm[K]['logicalType']] : FormConditionLogicalTypeValueMap[TForm[K]['logicalType']] | undefined;
};
References: services.BasicForm, services.HidePredicate, FormConditionLogicalTypeValueMap
Introduced: API version 2.0
Type Parameters
Parameter | Type | Description |
---|---|---|
TForm | extends services.BasicForm | The type of the form. |