Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.ts>keyof

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function keyof
import { keyof } from "https://deno.land/x/valibot@v0.35.0/mod.ts";

Creates a picklist schema of object keys.

Type Parameters

TSchema extends Schema

Parameters

schema: TSchema

The object schema.

Returns

A picklist schema.

Creates a picklist schema of object keys.

Type Parameters

TSchema extends Schema
TMessage extends ErrorMessage<PicklistIssue> | undefined

Parameters

schema: TSchema

The object schema.

message: TMessage

The error message.