@umituz/react-native-validation 1.4.2 → 1.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-validation",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "Comprehensive validation and sanitization utilities for React Native forms",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -42,4 +42,4 @@
42
42
  "README.md",
43
43
  "LICENSE"
44
44
  ]
45
- }
45
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Validation Result Interface
3
+ * Represents the outcome of a validation operation
4
+ */
5
+ export interface ValidationResult {
6
+ /**
7
+ * Whether the validation passed
8
+ */
9
+ isValid: boolean;
10
+
11
+ /**
12
+ * Error message if validation failed
13
+ */
14
+ error?: string;
15
+ }