Skip to main content
Module

x/valibot/mod.ts>literal

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

Creates a literal schema.

Type Parameters

TLiteral extends Literal

Parameters

literal: TLiteral

The literal value.

optional
error: string

The error message.

Returns

LiteralSchema<TLiteral>

A literal schema.