(ast: AST): ast is DeclarationNarrows an AST to Declaration.
When to use
Use to recognize declaration AST nodes before running declaration-specific handling.
Source effect/SchemaAST.ts:1101 lines
export const const isDeclaration: (
ast: AST
) => ast is Declaration
Narrows an
AST
to
Declaration
.
When to use
Use to recognize declaration AST nodes before running declaration-specific
handling.
isDeclaration = function makeGuard<T extends AST["_tag"]>(
tag: T
): (ast: AST) => ast is Extract<AST, { _tag: T }>
makeGuard("Declaration")Referenced by 1 symbols