NestJS MCP - v1.0.1
Preparing search index...
utils/zod-helpers
validateWithZod
Function validateWithZod
validateWithZod
<
T
>
(
schema
:
ZodType
<
T
>
,
data
:
unknown
)
:
T
Validate input against a Zod schema Returns validated data or throws an error
Type Parameters
T
Parameters
schema
:
ZodType
<
T
>
data
:
unknown
Returns
T
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
NestJS MCP - v1.0.1
Loading...
Validate input against a Zod schema Returns validated data or throws an error