zod-conf 1.0.0 → 1.0.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 +2 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { boolean, number, string, enum as zenum } from 'zod';
|
|
2
|
+
import { ZodConfSchema } from './values/define.js';
|
|
2
3
|
export declare const zc: {
|
|
3
|
-
define: <T extends import("zod").ZodRawShape>(shape: T) =>
|
|
4
|
+
define: <T extends import("zod").ZodRawShape>(shape: T) => ZodConfSchema<T>;
|
|
4
5
|
env: (key: string) => {
|
|
5
6
|
string: () => import("zod").ZodString;
|
|
6
7
|
number: () => import("zod").ZodCoercedNumber<unknown>;
|
|
@@ -11,6 +12,7 @@ export declare const zc: {
|
|
|
11
12
|
};
|
|
12
13
|
};
|
|
13
14
|
object: <T extends import("zod").ZodRawShape>(shape: T) => import("zod").ZodObject<T>;
|
|
15
|
+
ZodConfSchema: typeof ZodConfSchema;
|
|
14
16
|
string: typeof string;
|
|
15
17
|
boolean: typeof boolean;
|
|
16
18
|
number: typeof number;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAU,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAI3D,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;CAYd,CAAC;AAEF,eAAe,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { boolean, number, string, enum as zenum } from 'zod';
|
|
2
|
-
import { define } from './values/define.js';
|
|
2
|
+
import { define, ZodConfSchema } from './values/define.js';
|
|
3
3
|
import { env } from './values/env.js';
|
|
4
4
|
import { object } from './values/object.js';
|
|
5
5
|
export const zc = {
|
|
@@ -7,6 +7,7 @@ export const zc = {
|
|
|
7
7
|
define,
|
|
8
8
|
env,
|
|
9
9
|
object,
|
|
10
|
+
ZodConfSchema,
|
|
10
11
|
// re-export common zod values for convenience
|
|
11
12
|
string,
|
|
12
13
|
boolean,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,KAAK,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,CAAC,MAAM,EAAE,GAAG;IAEhB,MAAM;IACN,GAAG;IACH,MAAM;IACN,aAAa;IAGb,MAAM;IACN,OAAO;IACP,MAAM;IACN,IAAI,EAAE,KAAK;CACZ,CAAC;AAEF,eAAe,EAAE,CAAC"}
|