Function arrayFromZodUnion
- arrayFromZodUnion<S>(schema): {
error: Error;
value?: undefined;
} | {
error?: undefined;
value: string[];
} Experimental
Type Parameters
- S extends ZodUnion<readonly [ZodTypeAny, ZodTypeAny]>
Returns {
error: Error;
value?: undefined;
} | {
error?: undefined;
value: string[];
}
Converts a Zod union into an array of strings.