effect-io-ai

Package: effect
Module: SchemaAST

SchemaAST.isLiteral

Narrows an AST to Literal.

When to use

Use to recognize exact string, number, boolean, or bigint literal AST nodes.

See

Signature

declare const isLiteral: (ast: AST) => ast is Literal

Source

Since v3.10.0