Function
strictObject
(
shape: T,
params?: string | core.$ZodObjectParams
)
Source from the content-addressed store, hash-verified
| 1519 | // strictObject |
| 1520 | |
| 1521 | export 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
Tested by
no test coverage detected