@ninetailed/experience.js-utils 7.20.4 → 7.20.6

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,10 +1,10 @@
1
- import { z } from 'zod';
2
- export declare const Variant: z.ZodObject<{
3
- id: z.ZodString;
4
- }, "strip", z.ZodUnknown, z.objectOutputType<{
5
- id: z.ZodString;
6
- }, z.ZodUnknown, "strip">, z.objectInputType<{
7
- id: z.ZodString;
8
- }, z.ZodUnknown, "strip">>;
9
- export type VariantLike = z.input<typeof Variant>;
10
- export type Variant = z.infer<typeof Variant>;
1
+ import { z } from 'zod';
2
+ export declare const Variant: z.ZodObject<{
3
+ id: z.ZodString;
4
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
5
+ id: z.ZodString;
6
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
7
+ id: z.ZodString;
8
+ }, z.ZodUnknown, "strip">>;
9
+ export type VariantLike = z.input<typeof Variant>;
10
+ export type Variant = z.infer<typeof Variant>;
@@ -1,14 +1,14 @@
1
- import { z, ZodTypeAny } from 'zod';
2
- /**
3
- * Zod helper for parsing arrays and ignore items not specified in the schema
4
- *
5
- * @param zodUnion - union of known types
6
- *
7
- * @example
8
- * const binaryArraySchema = arrayIgnoreUnknown(z.union([z.literal('0'), z.literal('1')]))
9
- * type BinaryArray = z.TypeOf<typeof binaryArraySchema>
10
- *
11
- * const binaryArray: BinaryArray = binaryArraySchema.parse(['0', '1', '2', '0'])
12
- * console.log(binaryArray) // ['0', '1', '0']
13
- */
14
- export declare function zodArrayIgnoreUnknown<T extends ZodTypeAny>(zodType: T): z.ZodEffects<z.ZodArray<T, "many">, T["_output"][], unknown>;
1
+ import { z, ZodTypeAny } from 'zod';
2
+ /**
3
+ * Zod helper for parsing arrays and ignore items not specified in the schema
4
+ *
5
+ * @param zodUnion - union of known types
6
+ *
7
+ * @example
8
+ * const binaryArraySchema = arrayIgnoreUnknown(z.union([z.literal('0'), z.literal('1')]))
9
+ * type BinaryArray = z.TypeOf<typeof binaryArraySchema>
10
+ *
11
+ * const binaryArray: BinaryArray = binaryArraySchema.parse(['0', '1', '2', '0'])
12
+ * console.log(binaryArray) // ['0', '1', '0']
13
+ */
14
+ export declare function zodArrayIgnoreUnknown<T extends ZodTypeAny>(zodType: T): z.ZodEffects<z.ZodArray<T, "many">, T["_output"][], unknown>;