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

Method nullable

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

Source from the content-addressed store, hash-verified

163 exactOptional(): ZodExactOptional<this>;
164 nonoptional(params?: string | core.$ZodNonOptionalParams): ZodNonOptional<this>;
165 nullable(): ZodNullable<this>;
166 nullish(): ZodOptional<ZodNullable<this>>;
167 default(def: util.NoUndefined<core.output<this>>): ZodDefault<this>;
168 default(def: () => util.NoUndefined<core.output<this>>): ZodDefault<this>;

Callers 15

index.tsFile · 0.80
nullishFunction · 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
refine.test.tsFile · 0.80
partials.test.tsFile · 0.80
object.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 7

checkErrorsFunction · 0.64
subcategoriesFunction · 0.64
nextFunction · 0.64
nullableFunction · 0.64
nullselfFunction · 0.64
nextFunction · 0.64
subcategoriesFunction · 0.64