zcb 0.0.14 → 0.0.16
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Build configs with type safety from zod schema.
|
|
|
5
5
|
[](https://badge.fury.io/js/zcb)
|
|
6
6
|
[](LICENSE)
|
|
7
7
|
|
|
8
|
-
Define a configuration schema with [`zod`](https://github.com/colinhacks/zod) and use the output of that in `zcb` to create a config builder with autocomplete and
|
|
8
|
+
Define a configuration schema with [`zod`](https://github.com/colinhacks/zod) and use the output of that in `zcb` to create a config builder with method autocomplete and value type validation.
|
|
9
9
|
|
|
10
10
|
Use our cli module to build and/or watch a config builder file and transform it into a literally typed config object.
|
|
11
11
|
|
|
@@ -330,7 +330,7 @@ Then use the autogenerated config to create a config reader that you can access
|
|
|
330
330
|
import { createConfigParser, createConfigReader } from 'zcb';
|
|
331
331
|
import builtConfig from './builtConfig.ts';
|
|
332
332
|
|
|
333
|
-
export default
|
|
333
|
+
export default createConfigReader(builtConfig);
|
|
334
334
|
```
|
|
335
335
|
|
|
336
336
|
### Use config reader
|
package/package.json
CHANGED