validator-fns 1.9.0 → 1.9.1
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/README.md +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -205,16 +205,14 @@ Casts value to an array, `null` or `undefined` if using the default date parser.
|
|
|
205
205
|
|
|
206
206
|
Supported validation tests: `max`, `min`, and `required`.
|
|
207
207
|
|
|
208
|
-
For invalid results, errors are in the `errors` property. It
|
|
208
|
+
For invalid results, errors are in the `errors` property. It is an array of type:
|
|
209
209
|
|
|
210
210
|
```ts
|
|
211
|
-
|
|
212
|
-
error: null | { [key: string]: string };
|
|
213
|
-
message: string;
|
|
214
|
-
index: number;
|
|
215
|
-
}
|
|
211
|
+
type ArrayErrors = Array<string | null>;
|
|
216
212
|
```
|
|
217
213
|
|
|
214
|
+
Where valid entries are represented as `null` and invalid entries with the error message as a string.
|
|
215
|
+
|
|
218
216
|
<details><summary>config</summary>
|
|
219
217
|
|
|
220
218
|
| option | type | description |
|