Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/colinhacks/zod
/ stringOptional
Method
stringOptional
packages/zod/src/v3/tests/Mocker.ts:36–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
return
undefined;
35
}
36
get stringOptional(): string | undefined {
37
return
this.pick(this.string, this.undefined);
38
}
39
get stringNullable(): string | null {
40
return
this.pick(this.string, this.null);
41
}
Callers
nothing calls this directly
Calls
1
pick
Method · 0.65
Tested by
no test coverage detected