Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/colinhacks/zod
/ optional.test.ts
File
optional.test.ts
packages/zod/src/v4/classic/tests/optional.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
// @ts-ignore TS6133
2
import
{ expect, expectTypeOf, test } from
"vitest"
;
3
4
import
* as z from
"zod/v4"
;
Callers
nothing calls this directly
Calls
13
optional
Method · 0.80
string
Method · 0.80
default
Method · 0.80
nullable
Method · 0.80
undefined
Method · 0.80
pipe
Method · 0.80
transform
Method · 0.80
number
Method · 0.80
nullish
Method · 0.80
exactOptional
Method · 0.80
parse
Method · 0.65
safeParse
Method · 0.65
Tested by
no test coverage detected