Asynchronously parses the input using the provided Zod schema (v3 or v4) and returns the parsed value. Throws an error if parsing fails or if the schema is not a recognized Zod v3 or v4 schema.
interopParseAsync<T>(schema: InteropZodType<T>, input: unknown): Promise<T>| Name | Type | Description |
|---|---|---|
schema* | InteropZodType<T> | The Zod schema (v3 or v4) to use for parsing. |
input* | unknown | The input value to parse. |