Skip to content

Commit

Permalink
Merge branch 'master' into add-string-jwt
Browse files Browse the repository at this point in the history
  • Loading branch information
danilomourelle authored Apr 11, 2024
2 parents e940c87 + cd663b3 commit 1e31d81
Show file tree
Hide file tree
Showing 43 changed files with 5,308 additions and 2,185 deletions.
17 changes: 0 additions & 17 deletions .github/stale.yml

This file was deleted.

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
4 changes: 2 additions & 2 deletions ERROR_HANDLING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ Each ZodError has an `issues` property that is an array of `ZodIssues`. Each iss

## ZodIssue

`ZodIssue` is _not_ a class. It is a [discriminated union](https://www.typescriptlang.org/docs/handbook/advanced-types.html#discriminated-unions).
`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
Loading

0 comments on commit 1e31d81

Please sign in to comment.