Schema.build.literal
Creates a validation builder that only accepts a specific value.
literal: <T extends string | number | boolean>(
value: T | T[],
) => LiteralBuilder<T>;
Parameters
- value — The exact value that must match.
Return value
Related
Schema.build static
An object containing functions that create Builder instances for specific types.
