Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/nosdump/deps.ts>z.ZodObject#setKey

A command line tool which dumps events stored in Nostr relays
Go to Latest
method z.ZodObject.prototype.setKey
import { z } from "https://deno.land/x/nosdump@0.4.4/deps.ts";
const { ZodObject } = z;

Type Parameters

Key extends string
Schema extends ZodTypeAny

Parameters

key: Key
schema: Schema

Returns

ZodObject<T & [k in Key]: Schema, UnknownKeys, Catchall>