Skip to main content
Deno 2 is finally here 🎉️
Learn more
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://deno.land/x/zod@v3.23.2/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"][]