Skip to content

feat: add "or" solution to "07 union problem" #4

Open
@NachoVazquez

Description

@NachoVazquez

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions