@optique/zod 0.9.0-dev.211 → 0.9.0-dev.212

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/dist/index.cjs CHANGED
@@ -154,6 +154,7 @@ function inferMetavar(schema) {
154
154
  */
155
155
  function zod(schema, options = {}) {
156
156
  return {
157
+ $mode: "sync",
157
158
  metavar: options.metavar ?? inferMetavar(schema),
158
159
  parse(input) {
159
160
  const result = schema.safeParse(input);
package/dist/index.d.cts CHANGED
@@ -99,6 +99,6 @@ interface ZodParserOptions {
99
99
  *
100
100
  * @since 0.7.0
101
101
  */
102
- declare function zod<T>(schema: z.Schema<T>, options?: ZodParserOptions): ValueParser<T>;
102
+ declare function zod<T>(schema: z.Schema<T>, options?: ZodParserOptions): ValueParser<"sync", T>;
103
103
  //#endregion
104
104
  export { ZodParserOptions, zod };
package/dist/index.d.ts CHANGED
@@ -99,6 +99,6 @@ interface ZodParserOptions {
99
99
  *
100
100
  * @since 0.7.0
101
101
  */
102
- declare function zod<T>(schema: z.Schema<T>, options?: ZodParserOptions): ValueParser<T>;
102
+ declare function zod<T>(schema: z.Schema<T>, options?: ZodParserOptions): ValueParser<"sync", T>;
103
103
  //#endregion
104
104
  export { ZodParserOptions, zod };
package/dist/index.js CHANGED
@@ -131,6 +131,7 @@ function inferMetavar(schema) {
131
131
  */
132
132
  function zod(schema, options = {}) {
133
133
  return {
134
+ $mode: "sync",
134
135
  metavar: options.metavar ?? inferMetavar(schema),
135
136
  parse(input) {
136
137
  const result = schema.safeParse(input);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/zod",
3
- "version": "0.9.0-dev.211+322b48ee",
3
+ "version": "0.9.0-dev.212+a3f282b6",
4
4
  "description": "Zod value parsers for Optique",
5
5
  "keywords": [
6
6
  "CLI",