• Returns a partial version of a Zod object schema, making all fields optional. Supports both Zod v3 and v4.

    Type Parameters

    Parameters

    • schema: T

      The Zod object schema instance (either v3 or v4).

    Returns InteropZodObject

    The partial Zod object schema.

    If the schema is not a Zod v3 or v4 object.