@jasperoosthoek/react-toolbox 0.7.4 → 0.7.5

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.
package/change-log.md CHANGED
@@ -299,4 +299,7 @@
299
299
  - Upgrade to React@19.1.0
300
300
 
301
301
  ##### Version 0.7.4
302
- - Fix type of `FormOnChange` to handle second argument
302
+ - Fix type of `FormOnChange` to handle second argument
303
+
304
+ ##### Version 0.7.5
305
+ - Make second input argument of`FormOnChange` optional
@@ -3,7 +3,7 @@ import { BadgeProps, FormControlProps, FormCheckProps } from 'react-bootstrap';
3
3
  import { Variant } from 'react-bootstrap/types';
4
4
  import { Moment } from 'moment';
5
5
  export type FormValue = boolean | string | string[] | number | number[];
6
- export type FormOnChange = (((value: FormValue, formData: any) => any));
6
+ export type FormOnChange = (((value: FormValue, formData?: any) => any));
7
7
  export type FormComponentProps = {
8
8
  keyName?: string;
9
9
  pristine?: boolean;