@ninetailed/experience.js-utils-contentful 4.2.0-beta.2 → 4.2.0-beta.4
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.
- package/index.cjs +42 -9
- package/index.js +42 -9
- package/package.json +5 -5
- package/types/BaselineWithExperiencesEntry.d.ts +612 -678
- package/types/EntryFields.d.ts +8 -1
- package/types/ExperimentEntry.d.ts +24085 -1060
package/types/EntryFields.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* This does not work anymore from zod > 3.21.0:
|
|
4
|
+
*
|
|
5
|
+
* We have to cast the result of passthrough() to z.ZodObject<{}> to make it work,
|
|
6
|
+
* as the inferred type changed to {} & { [k: string]: unknown; }
|
|
7
|
+
* It was {} before, so we do the type cast to get it back to {}.
|
|
8
|
+
*/
|
|
9
|
+
export declare const EntryFields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
|
|
3
10
|
export type EntryFields = z.infer<typeof EntryFields>;
|