Home > @i2analyze/i2connect > utility > FormCallbackParameters
utility.FormCallbackParameters type
A utility type to determine the callback parameters if a service has a form.
Signature:
type FormCallbackParameters<T extends services.IFormServiceConfig> = T['form'] extends services.BasicForm ? {
conditions: FormConditions<T['form']>;
} : T['form'] extends services.SectionedForm ? {
sections: SectionedFormConditions<T['form']>;
} : unknown;
References: services.IFormServiceConfig, services.BasicForm, FormConditions, services.SectionedForm, SectionedFormConditions
Introduced: API version 2.0
Type Parameters
Parameter | Type | Description |
---|---|---|
T | extends services.IFormServiceConfig | The type of service configuration. |