@frigade/react 1.32.22 → 1.32.24

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/lib/index.d.ts CHANGED
@@ -349,10 +349,23 @@ interface FormInputType {
349
349
  title?: string;
350
350
  type: string;
351
351
  required?: boolean;
352
+ validation?: InputValidation;
353
+ }
354
+ interface InputValidation {
355
+ type: string;
356
+ requiredError?: string;
357
+ invalidTypeError?: string;
358
+ props?: InputValidationRuleProps[];
359
+ }
360
+ interface InputValidationRuleProps {
361
+ requirement: string;
362
+ value?: string | number;
363
+ message?: string;
352
364
  }
353
365
  interface FormInputProps {
354
366
  formInput: FormInputType;
355
367
  customFormTypeProps: CustomFormTypeProps;
368
+ inputData: any;
356
369
  onSaveInputData: (data: object) => void;
357
370
  setFormValidationErrors: (errors: FormValidationError[]) => void;
358
371
  }