Skip to content

Commit ae0f7a2

Browse files
rvermootenctRyan Vermooten
and
Ryan Vermooten
authoredSep 29, 2023
docs: update ref to discriminated-unions docs (#2485)
Co-authored-by: Ryan Vermooten <ryan.vermooten@vdl.digital>
1 parent ad2ee9c commit ae0f7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎ERROR_HANDLING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Each ZodError has an `issues` property that is an array of `ZodIssues`. Each iss
2424

2525
## ZodIssue
2626

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

2929
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.
3030

0 commit comments

Comments
 (0)
Please sign in to comment.