@gearbox-protocol/cli-utils 5.36.1 → 5.36.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
export declare const boolLike: z.ZodUnion<readonly [z.ZodCoercedBoolean<unknown>, z.ZodPipe<z.ZodUnknown, z.ZodBoolean>]>;
|
|
3
3
|
export declare const stringArrayLike: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>;
|
|
4
|
+
export declare const optionalStringArrayLike: z.ZodPipe<z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>>, z.ZodTransform<string[] | undefined, string[] | undefined>>;
|
|
4
5
|
/**
|
|
5
6
|
* Like Address from abitype/zod, but for zod/v4
|
|
6
7
|
*/
|
|
@@ -4,6 +4,9 @@ export const stringArrayLike = z.union([
|
|
|
4
4
|
z.array(z.string()),
|
|
5
5
|
z.string().transform(val => val.split(",")),
|
|
6
6
|
]);
|
|
7
|
+
export const optionalStringArrayLike = stringArrayLike
|
|
8
|
+
.optional()
|
|
9
|
+
.transform(v => (v?.length ? v : undefined));
|
|
7
10
|
/**
|
|
8
11
|
* Like Address from abitype/zod, but for zod/v4
|
|
9
12
|
*/
|