8000 Object.freeze(["a","b"]) is not a valid z.enum parameter · Issue #4307 · colinhacks/zod · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Object.freeze(["a","b"]) is not a valid z.enum parameter #4307
Closed
@AlvesJorge

Description

@AlvesJorge

zod version: 3.24.3
Sandbox reproduction: https://codesandbox.io/p/sandbox/866jqq

as const works but freezing the object fails with No overload matches this call.
Is this expected behavior? If so why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0