ADK for TypeScript: API Reference
System
Light
Dark
Search…
Preparing search index...
isZodObject
Function isZodObject
isZodObject
(
obj
:
unknown
,
)
:
obj
is
|
ZodObject
<
ZodRawShape
,
UnknownKeysParam
,
ZodTypeAny
,
{
[
key
:
string
]:
any
}
,
{
[
key
:
string
]:
any
}
,
>
|
ZodObject
<
Readonly
<
{
[
k
:
string
]:
$ZodType
<
unknown
,
unknown
,
$ZodTypeInternals
<
unknown
,
unknown
>
,
>
;
}
,
>
,
$strip
,
>
Returns true if the given object is a ZodObject (supports both Zod v3 and v4).
Parameters
obj
:
unknown
Returns
obj
is
|
ZodObject
<
ZodRawShape
,
UnknownKeysParam
,
ZodTypeAny
,
{
[
key
:
string
]:
any
}
,
{
[
key
:
string
]:
any
}
,
>
|
ZodObject
<
Readonly
<
{
[
k
:
string
]:
$ZodType
<
unknown
,
unknown
,
$ZodTypeInternals
<
unknown
,
unknown
>
,
>
;
}
,
>
,
$strip
,
>
ADK for TypeScript: API Reference - v2.4.0
Loading...
Returns true if the given object is a ZodObject (supports both Zod v3 and v4).