MCP TypeScript SDK
Preparing search index...
@modelcontextprotocol/client
index
normalizeObjectSchema
Function normalizeObjectSchema
normalizeObjectSchema
(
schema
:
AnySchema
|
ZodRawShapeCompat
|
undefined
,
)
:
AnyObjectSchema
|
undefined
Normalizes a schema to an object schema. Handles both:
Already-constructed object schemas (v3 or v4)
Raw shapes that need to be wrapped into object schemas
Parameters
schema
:
AnySchema
|
ZodRawShapeCompat
|
undefined
Returns
AnyObjectSchema
|
undefined
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
MCP TypeScript SDK
Loading...
Normalizes a schema to an object schema. Handles both: