effect-io-ai

Package: effect
Module: SchemaAST

SchemaAST.isSymbol

Narrows an AST to Symbol.

When to use

Use to narrow an AST node before handling the Symbol variant for schemas that accept any JavaScript symbol value.

See

Signature

declare const isSymbol: (ast: AST) => ast is Symbol

Source

Since v4.0.0