Kizuki
HTTP API
GitHub
Preparing search index...
lib/model
parseJsonReply
Function parseJsonReply
parseJsonReply
<
T
>
(
text
:
string
,
schema
:
ZodType
<
T
>
)
:
T
Reads a JSON reply that may be wrapped in a code fence or extra words, and checks its shape.
Type Parameters
T
Parameters
text
:
string
schema
:
ZodType
<
T
>
Returns
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
HTTP API
GitHub
Kizuki
Loading...
Reads a JSON reply that may be wrapped in a code fence or extra words, and checks its shape.