import { literal } from "https://deno.land/x/valibot@v0.19.0/src/schemas/literal/index.ts";
Creates a literal schema.
Type Parameters
TLiteral extends Literal
Parameters
literal: TLiteral
The literal value.
optional
error: ErrorMessageThe error message.
Returns
A literal schema.