Function objectOf
-
objectOf<
S extends
Readonly<
{
[k: string]: $ZodType<
unknown,
unknown,
$ZodTypeInternals<unknown, unknown>,
>;
},
>,
>(
shape: S,
): ZodObject<S>Type Parameters
- S extends Readonly<
{
[k: string]: $ZodType<
unknown,
unknown,
$ZodTypeInternals<unknown, unknown>,
>;
},
>
Parameters
- shape: S
Returns ZodObject<S>
- S extends Readonly<
An object with a property of each key
shapenames, of the type its token checks. A property whose token ends in Zod's.optional()may be missing. Other properties are allowed, and not checked.