effect-io-ai

Package: effect
Module: SchemaAST

SchemaAST.isDeclaration

Narrows an AST to Declaration.

When to use

Use to recognize declaration AST nodes before running declaration-specific handling.

See

Signature

declare const isDeclaration: (ast: AST) => ast is Declaration

Source

Since v3.10.0