Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/zod/types.ts>RecordType

TypeScript-first schema validation with static type inference
Very Popular
Go to Latest
type alias RecordType
import { type RecordType } from "https://deno.land/x/zod@v3.23.0/types.ts";

Type Parameters

K extends string | number | symbol
V
definition: [string] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : [BRAND<string | number | symbol>] extends [K] ? Record<K, V> : Partial<Record<K, V>>