(literal: L, name?: string)
| 1114 | * @since 2.0.0 |
| 1115 | */ |
| 1116 | export function Literal<L extends SchemaAST.LiteralValue>(literal: L, name?: string) { |
| 1117 | return schema(Schema.Literal(literal), name) |
| 1118 | } |
| 1119 | |
| 1120 | /** |
| 1121 | * Creates a config that only accepts one of the specified literal values. |