Function arrayFromZodSchema
- arrayFromZodSchema<S>(schema): {
error: Error;
value?: undefined;
} | {
error?: undefined;
value: {
default: any;
description: string;
key: string;
}[];
} Experimental
Returns {
error: Error;
value?: undefined;
} | {
error?: undefined;
value: {
default: any;
description: string;
key: string;
}[];
}
Converts a Zod schema into an array of objects.