Module

x/zod/mod.ts>z.arrayOutputType

TypeScript-first schema validation with static type inference
Extremely Popular
Go to Latest
type alias z.arrayOutputType
import { type z } from "https://dotland.deno.dev/x/zod@v3.20/mod.ts";
const { arrayOutputType } = z;

Type Parameters

T extends ZodTypeAny
optional
Cardinality extends ArrayCardinality = "many"
definition: Cardinality extends "atleastone" ? [T["_output"], ...T["_output"][]] : T["_output"][]