Skip to content

SPR: no longer needed? #22

Description

@sharunkumar

The return type can already be optionally chained from schema.safeParse():

https://github.com/colinhacks/zod/blob/main/packages/zod/src/v3/types.ts#L145-L156

It would be nice to have SPR removed from the public api to prevent it from being used redundantly

I could work on a PR to remove this but it is probably going to be a breaking change

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