Open
Description
name: Feature request
about: Suggest an idea for this project
title: 'add "or" solution to "07 union problem"'
What is the motivation/use case for changing the behavior?
When discussing the possible solutions for exercise 07, it would be nice to include the use of "or" as a union alternative.
Describe the solution you'd like
Add the following as a third solution.
const Form = z.object({
repoName: z.string(),
privacyLevel: z.literal('private').or(z.literal('public')),
});
Metadata
Metadata
Assignees
Labels
No labels