@apolitical/component-library 2.0.0 → 2.0.1-4125.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -158,7 +158,7 @@ export interface IFormProps {
158
158
  /** The function to call when the form submission fails */
159
159
  onFailure?: (arg: IFormValues) => void;
160
160
  /** The function to call when the form is successfully submitted */
161
- onSuccess?: (arg: IFormValues) => void;
161
+ onSuccess?: (arg: IFormValues) => Promise<void>;
162
162
  };
163
163
  /** The Google Tag Manager data to be passed to the field */
164
164
  gtm?: {
@@ -4,7 +4,7 @@ interface IContactFormProps {
4
4
  event?: string;
5
5
  };
6
6
  functions: {
7
- onSuccess?: () => void;
7
+ onSuccess?: () => Promise<void>;
8
8
  onFailure?: () => void;
9
9
  };
10
10
  }