MCP TypeScript SDK
Preparing search index...
@modelcontextprotocol/server
index
isSchemaOptional
Function isSchemaOptional
isSchemaOptional
(
schema
:
AnySchema
)
:
boolean
Checks if a schema is optional. Works with both Zod v3 and v4.
Parameters
schema
:
AnySchema
Returns
boolean
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
MCP TypeScript SDK
Loading...
Checks if a schema is optional. Works with both Zod v3 and v4.