Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/colinhacks/zod
/ nullish
Function
nullish
packages/zod/src/v3/types.ts:450–452 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
448
return
ZodNullable.create(this, this._def) as any;
449
}
450
nullish(): ZodOptional<ZodNullable<this>> {
451
return
this.nullable().optional();
452
}
453
array(): ZodArray<this> {
454
return
ZodArray.create(this);
455
}
Callers
nothing calls this directly
Calls
2
optional
Method · 0.80
nullable
Method · 0.80
Tested by
no test coverage detected