Skip to content

⬅️ Back to Table of Contents

📄 DeclarationStatement.ts

📊 Analysis Summary

Metric Count
📦 Imports 13
📑 Type Aliases 1

📚 Table of Contents

🛠️ File Location:

📂 packages/ast-spec/src/unions/DeclarationStatement.ts

📦 Imports

Name Source
ClassDeclaration ../declaration/ClassDeclaration/spec
ExportAllDeclaration ../declaration/ExportAllDeclaration/spec
ExportDefaultDeclaration ../declaration/ExportDefaultDeclaration/spec
ExportNamedDeclaration ../declaration/ExportNamedDeclaration/spec
FunctionDeclaration ../declaration/FunctionDeclaration/spec
TSDeclareFunction ../declaration/TSDeclareFunction/spec
TSEnumDeclaration ../declaration/TSEnumDeclaration/spec
TSImportEqualsDeclaration ../declaration/TSImportEqualsDeclaration/spec
TSInterfaceDeclaration ../declaration/TSInterfaceDeclaration/spec
TSModuleDeclaration ../declaration/TSModuleDeclaration/spec
TSNamespaceExportDeclaration ../declaration/TSNamespaceExportDeclaration/spec
TSTypeAliasDeclaration ../declaration/TSTypeAliasDeclaration/spec
ClassExpression ../expression/ClassExpression/spec

Type Aliases

DeclarationStatement

/* * @deprecated * Note that this is neither up to date nor fully correct. /

type DeclarationStatement = | ClassDeclaration
  | ClassExpression
  | ExportAllDeclaration
  | ExportDefaultDeclaration
  | ExportNamedDeclaration
  | FunctionDeclaration
  | TSDeclareFunction
  | TSEnumDeclaration
  | TSImportEqualsDeclaration
  | TSInterfaceDeclaration
  | TSModuleDeclaration
  | TSNamespaceExportDeclaration
  | TSTypeAliasDeclaration;