这是indexloc提供的服务,不要输入任何密码
Skip to content

Why is .default() named z._default() in Zod Mini? #5444

@Nicolapps

Description

@Nicolapps

While working on a Zod-related project, I realized that .default() is named z._default() in Zod Mini. This looks inconsistent with the Zod method, so why is there a different name? Do they work differently?

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