DECLARATIONS

tcmts.core.docs.DECLARATIONS · #dmkpmrky · term · runs anywhere

Statements that declare something, which can be exported.

import { SyntaxKind as ts_SyntaxKind } from "typescript/ast";

export const DECLARATIONS = new Set([
  ts_SyntaxKind.VariableStatement,
  ts_SyntaxKind.FunctionDeclaration,
  ts_SyntaxKind.ClassDeclaration,
  ts_SyntaxKind.InterfaceDeclaration,
  ts_SyntaxKind.TypeAliasDeclaration,
  ts_SyntaxKind.EnumDeclaration,
  ts_SyntaxKind.ModuleDeclaration,
])

used by