Skip to content

⬅️ Back to Table of Contents

📄 spec.ts

📊 Analysis Summary

Metric Count
📦 Imports 7
📐 Interfaces 1

📚 Table of Contents

🛠️ File Location:

📂 packages/ast-spec/src/jsx/JSXAttribute/spec.ts

📦 Imports

Name Source
AST_NODE_TYPES ../../ast-node-types
BaseNode ../../base/BaseNode
JSXElement ../../expression/JSXElement/spec
JSXExpression ../../unions/JSXExpression
Literal ../../unions/Literal
JSXIdentifier ../JSXIdentifier/spec
JSXNamespacedName ../JSXNamespacedName/spec

Interfaces

JSXAttribute

Interface Code
export interface JSXAttribute extends BaseNode {
  type: AST_NODE_TYPES.JSXAttribute;
  name: JSXIdentifier | JSXNamespacedName;
  value: JSXElement | JSXExpression | Literal | null;
}

Properties

Name Type Optional Description
type AST_NODE_TYPES.JSXAttribute
name JSXIdentifier | JSXNamespacedName
value JSXElement | JSXExpression | Literal | null