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

Method optional

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

Source from the content-addressed store, hash-verified

160
161 // wrappers
162 optional(): ZodOptional<this>;
163 exactOptional(): ZodExactOptional<this>;
164 nonoptional(params?: string | core.$ZodNonOptionalParams): ZodNonOptional<this>;
165 nullable(): ZodNullable<this>;

Callers 15

index.tsFile · 0.80
nullishFunction · 0.80
partialMethod · 0.80
ostringFunction · 0.80
onumberFunction · 0.80
obooleanFunction · 0.80
function.test.tsFile · 0.80
record.test.tsFile · 0.80
primitive.test.tsFile · 0.80
error.test.tsFile · 0.80
anyunknown.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 14

checkErrorsFunction · 0.64
subcategoriesFunction · 0.64
aFunction · 0.64
featuresFunction · 0.64
slotsFunction · 0.64
childrenFunction · 0.64
parentFunction · 0.64
optionalFunction · 0.64
optselfFunction · 0.64
stripOuterFunction · 0.64
subcategoriesFunction · 0.64
bFunction · 0.64