MCPcopy
hub / github.com/colinhacks/zod / strictObject

Function strictObject

packages/zod/src/v4/classic/schemas.ts:1521–1531  ·  view source on GitHub ↗
(
  shape: T,
  params?: string | core.$ZodObjectParams
)

Source from the content-addressed store, hash-verified

1519// strictObject
1520
1521export function strictObject<T extends core.$ZodLooseShape>(
1522 shape: T,
1523 params?: string | core.$ZodObjectParams
1524): ZodObject<util.Writeable<T>, core.$strict> {
1525 return new ZodObject({
1526 type: "object",
1527 shape,
1528 catchall: never(),
1529 ...util.normalizeParams(params),
1530 }) as any;
1531}
1532
1533// looseObject
1534

Callers

nothing calls this directly

Calls 1

neverFunction · 0.70

Tested by

no test coverage detected