import { literal } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/index.ts";
Creates a literal schema.
Type Parameters
TLiteral extends Literal
Parameters
literal_: TLiteral
The literal value.
Returns
LiteralSchema<TLiteral, undefined>
A literal schema.
Creates a literal schema.
Type Parameters
TLiteral extends Literal
TMessage extends ErrorMessage<LiteralIssue> | undefined
Returns
A literal schema.