UNPKG

@ai-sdk/provider-utils

Version:
8 lines (6 loc) 240 B
import type { ZodCatchDef } from 'zod/v3'; import { parseDef } from '../parse-def'; import type { Refs } from '../refs'; export const parseCatchDef = (def: ZodCatchDef<any>, refs: Refs) => { return parseDef(def.innerType._def, refs); };