import { literal } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/schemas/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.