Skip to content

Commit

Permalink
build: publish docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaishankar committed Oct 5, 2024
1 parent ad701a8 commit e69bcd6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ schema.refine((ctx, data) => {
ctx.issue("major issue") // raise an issue
ctx.pathFor(data.foo) // ["foo"]
ctx.isDefined(data.foo) // data.foo != null
ctx.get<T>("prop") // get a runtime property
ctx.get<T>("baz") // property from parse options: s.parse(input, { baz: any })

// with a few overloads for ctx.issue(...)
// and a few overloads for ctx.issue(...)
ctx.issue(() => "major issue") // function (eg ParaglideJS - m.major_issue)
ctx.issue(condition, "major issue") // raise issue only if condition is true
ctx.issue("severe", "major issue") // issue with code & message
Expand Down
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": "pukka",
"version": "1.2.0",
"version": "1.3.0",
"description": "Typescript schema-first zod compatible hyper validation",
"repository": {
"type": "git",
Expand Down

0 comments on commit e69bcd6

Please sign in to comment.