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

Method strict

packages/zod/src/v4/classic/schemas.ts:1394–1394  ·  view source on GitHub ↗

Consider `z.strictObject(A.shape)` instead

()

Source from the content-addressed store, hash-verified

1392
1393 /** Consider `z.strictObject(A.shape)` instead */
1394 strict(): ZodObject<Shape, core.$strict>;
1395
1396 /** This is the default behavior. This method call is likely unnecessary. */
1397 strip(): ZodObject<Shape, core.$strip>;

Callers 15

error.test.tsFile · 0.65
refine.test.tsFile · 0.65
parser.test.tsFile · 0.65
partials.test.tsFile · 0.65
object.test.tsFile · 0.65
pickomit.test.tsFile · 0.65
convertBaseSchemaFunction · 0.65
strictFunction · 0.65
objectFunction · 0.65
refine.test.tsFile · 0.65
object.test.tsFile · 0.65

Calls

no outgoing calls

Tested by 2

strictFunction · 0.52
objectFunction · 0.52