@ninetailed/experience.js-utils-contentful
Version:
Contentful utilities for Experience.js
11 lines (10 loc) • 458 B
TypeScript
import { z } from 'zod';
/**
* This does not work anymore from zod > 3.21.0:
*
* We have to cast the result of passthrough() to z.ZodObject<{}> to make it work,
* as the inferred type changed to {} & { [k: string]: unknown; }
* It was {} before, so we do the type cast to get it back to {}.
*/
export declare const EntryFields: z.ZodObject<{}, z.UnknownKeysParam, z.ZodTypeAny, {}, {}>;
export type EntryFields = z.infer<typeof EntryFields>;