(literal: L, name?: string)
| 1262 | * @since 2.0.0 |
| 1263 | */ |
| 1264 | export function literal<L extends SchemaAST.LiteralValue>(literal: L, name?: string) { |
| 1265 | return schema(Schema.Literal(literal), name) |
| 1266 | } |
| 1267 | |
| 1268 | /** |
| 1269 | * Creates a config that only accepts one of the specified literal values. |