Skip to content

Commit

Permalink
Valibot 0.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sinclairzx81 committed Mar 28, 2024
1 parent 300bef7 commit 8521d28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sinclair/typebox-codegen",
"version": "0.9.8",
"version": "0.9.9",
"description": "Code Generation Tools for TypeBox",
"main": "index.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/model/model-to-valibot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export namespace ModelToValibot {
}
function Intersect(schema: Types.TIntersect) {
const inner = schema.allOf.map((inner) => Visit(inner))
return Type(`v.merge`, `[${inner.join(', ')}]`, [])
return Type(`v.intersect`, `[${inner.join(', ')}]`, [])
}
function Literal(schema: Types.TLiteral) {
// prettier-ignore
Expand Down

0 comments on commit 8521d28

Please sign in to comment.