(ast: Literal)
| 1280 | * |
| 1281 | * **Example** (Creating a literal AST) |
| 1282 | * |
| 1283 | * ```ts import.meta.vitest |
| 1284 | * import { SchemaAST } from "effect" |
| 1285 | * |
| 1286 | * const ast = new SchemaAST.Literal("active") |
| 1287 | * ast.literal // => "active" |
| 1288 | * ``` |
| 1289 | * |
| 1290 | * @see {@link LiteralValue} |
| 1291 | * @see {@link isLiteral} |
| 1292 | * @category models |
| 1293 | * @since 3.10.0 |
| 1294 | */ |
| 1295 | export class Literal extends Base { |
| 1296 | readonly _tag = "Literal" |
no test coverage detected
searching dependent graphs…