⬅️ Back to Table of Contents
📄 PropertyName.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
5 |
📑 Type Aliases |
4 |
📚 Table of Contents
🛠️ File Location:
📂 packages/ast-spec/src/unions/PropertyName.ts
📦 Imports
Name |
Source |
Identifier |
../expression/Identifier/spec |
NumberLiteral |
../expression/literal/NumberLiteral/spec |
StringLiteral |
../expression/literal/StringLiteral/spec |
PrivateIdentifier |
../special/PrivateIdentifier/spec |
Expression |
../unions/Expression |
Type Aliases
PropertyName
type PropertyName = | ClassPropertyNameNonComputed
| PropertyNameComputed
| PropertyNameNonComputed;
PropertyNameComputed
type PropertyNameComputed = Expression;
PropertyNameNonComputed
type PropertyNameNonComputed = | Identifier
| NumberLiteral
| StringLiteral;
ClassPropertyNameNonComputed
type ClassPropertyNameNonComputed = | PrivateIdentifier
// only class properties can have private identifiers as their names
| PropertyNameNonComputed;