Skip to content

Commit

Permalink
Merge branch 'master' of github.com:colinhacks/zod into check-valid-date
Browse files Browse the repository at this point in the history
  • Loading branch information
samchungy committed Apr 18, 2024
2 parents a27c513 + 579ecb2 commit 4d0ba08
Show file tree
Hide file tree
Showing 54 changed files with 5,948 additions and 2,067 deletions.
3 changes: 1 addition & 2 deletions .dependency-cruiser.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ module.exports = {
"from.pathNot re of the not-to-dev-dep rule in the dependency-cruiser configuration",
from: {
path: "^(src)",
pathNot:
"\\.(spec|test)\\.(js|mjs|cjs|ts|ls|coffee|litcoffee|coffee\\.md)$",
pathNot: ["^src/__tests__/", "^src/benchmarks/"],
},
to: {
dependencyTypes: ["npm-dev"],
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["18"]
typescript: ["4.5", "4.6", "4.7", "4.8", "4.9", "5.0"]
node: ["18", "20"]
typescript: ["4.5", "4.6", "4.7", "4.8", "4.9", "5.0", "5.3"]
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion ERROR_HANDLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Each ZodError has an `issues` property that is an array of `ZodIssues`. Each iss

`ZodIssue` is _not_ a class. It is a [discriminated union](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#discriminated-unions).

The link above is the best way to learn about the concept. Discriminated unions are an ideal way to represent a data structures that may be one of many possible variants. You can see all the possible variants defined [here](./src/ZodError.ts). They are also described in the table below if you prefer.
The link above is the best way to learn about the concept. Discriminated unions are an ideal way to represent a data structures that may be one of many possible variants. You can see all the possible variants defined [here](https://github.com/colinhacks/zod/blob/master/src/ZodError.ts). They are also described in the table below if you prefer.

_Every_ ZodIssue has these fields:

Expand Down
264 changes: 216 additions & 48 deletions README.md

Large diffs are not rendered by default.

Loading

0 comments on commit 4d0ba08

Please sign in to comment.