Ask a question to get started
Enter to sendā¢Shift+Enter new line
Extends a Zod object schema with additional fields, supporting both Zod v3 and v4.
extendInteropZodObject<T extends InteropZodObject>( schema: T, extension: __type | __type | __type ): InteropZodObject
schema
T
The Zod object schema instance (either v3 or v4).
extension
__type | __type | __type
The fields to add to the schema.