zodified-config 1.0.0 → 1.0.2
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 +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,9 +39,11 @@ declare module 'zodified-config' {
|
|
|
39
39
|
interface ValidatedConfig extends Config {}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
try {
|
|
43
|
+
zodifiedConfig.validate(invalidSchema);
|
|
44
|
+
} catch (error: unknown) {
|
|
45
|
+
// if you enter here, it means the config is invalid or something else went wrong
|
|
46
|
+
// check the error.message
|
|
45
47
|
}
|
|
46
48
|
```
|
|
47
49
|
|