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

Function looseObject

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

Source from the content-addressed store, hash-verified

1533// looseObject
1534
1535export function looseObject<T extends core.$ZodLooseShape>(
1536 shape: T,
1537 params?: string | core.$ZodObjectParams
1538): ZodObject<util.Writeable<T>, core.$loose> {
1539 return new ZodObject({
1540 type: "object",
1541 shape,
1542 catchall: unknown(),
1543 ...util.normalizeParams(params),
1544 }) as any;
1545}
1546
1547// ZodUnion
1548export interface ZodUnion<T extends readonly core.SomeType[] = readonly core.$ZodType[]>

Callers

nothing calls this directly

Calls 1

unknownFunction · 0.70

Tested by

no test coverage detected