@optique/valibot 0.9.0-dev.211 → 0.9.0-dev.215

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
@@ -171,6 +171,7 @@ function inferMetavar(schema) {
171
171
  */
172
172
  function valibot$1(schema, options = {}) {
173
173
  return {
174
+ $mode: "sync",
174
175
  metavar: options.metavar ?? inferMetavar(schema),
175
176
  parse(input) {
176
177
  const result = (0, valibot.safeParse)(schema, input);
package/dist/index.d.cts CHANGED
@@ -108,6 +108,6 @@ interface ValibotParserOptions {
108
108
  *
109
109
  * @since 0.7.0
110
110
  */
111
- declare function valibot<T>(schema: v.BaseSchema<unknown, T, v.BaseIssue<unknown>>, options?: ValibotParserOptions): ValueParser<T>;
111
+ declare function valibot<T>(schema: v.BaseSchema<unknown, T, v.BaseIssue<unknown>>, options?: ValibotParserOptions): ValueParser<"sync", T>;
112
112
  //#endregion
113
113
  export { ValibotParserOptions, valibot };
package/dist/index.d.ts CHANGED
@@ -108,6 +108,6 @@ interface ValibotParserOptions {
108
108
  *
109
109
  * @since 0.7.0
110
110
  */
111
- declare function valibot<T>(schema: v.BaseSchema<unknown, T, v.BaseIssue<unknown>>, options?: ValibotParserOptions): ValueParser<T>;
111
+ declare function valibot<T>(schema: v.BaseSchema<unknown, T, v.BaseIssue<unknown>>, options?: ValibotParserOptions): ValueParser<"sync", T>;
112
112
  //#endregion
113
113
  export { ValibotParserOptions, valibot };
package/dist/index.js CHANGED
@@ -148,6 +148,7 @@ function inferMetavar(schema) {
148
148
  */
149
149
  function valibot(schema, options = {}) {
150
150
  return {
151
+ $mode: "sync",
151
152
  metavar: options.metavar ?? inferMetavar(schema),
152
153
  parse(input) {
153
154
  const result = safeParse(schema, input);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optique/valibot",
3
- "version": "0.9.0-dev.211+322b48ee",
3
+ "version": "0.9.0-dev.215+13b302c0",
4
4
  "description": "Valibot value parsers for Optique",
5
5
  "keywords": [
6
6
  "CLI",