Type alias ActionHandler<TValues, TSubmitResponse>
ActionHandler<TValues, TSubmitResponse>: ((stationData) => Promise<ErrorType | undefined | void> | ErrorType | undefined | void)
Type Parameters
-
TValues = FormikValues
-
TSubmitResponse = unknown
Type declaration
-
- (stationData): Promise<ErrorType | undefined | void> | ErrorType | undefined | void
-
Parameters
-
stationData: {
submitResponse: TSubmitResponse | undefined;
values: TValues;
}
-
submitResponse: TSubmitResponse | undefined
-
values: TValues
Returns Promise<ErrorType | undefined | void> | ErrorType | undefined | void
A function to handle an action execution on a FormStation. If action can not be performed, an error can be thrown which will then be displayed by the FormStation.