Function
looseObject
(
shape: T,
params?: string | core.$ZodObjectParams
)
Source from the content-addressed store, hash-verified
| 1533 | // looseObject |
| 1534 | |
| 1535 | export 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 |
| 1548 | export interface ZodUnion<T extends readonly core.SomeType[] = readonly core.$ZodType[]> |
Callers
nothing calls this directly
Tested by
no test coverage detected