Skip to content

⬅️ Back to Table of Contents

📄 PropertyDefinitionBase.ts

📊 Analysis Summary

Metric Count
📦 Imports 9
📐 Interfaces 4

📚 Table of Contents

🛠️ File Location:

📂 packages/ast-spec/src/base/PropertyDefinitionBase.ts

📦 Imports

Name Source
Decorator ../special/Decorator/spec
TSTypeAnnotation ../special/TSTypeAnnotation/spec
Expression ../unions/Expression
ClassPropertyNameNonComputed ../unions/PropertyName
PropertyName ../unions/PropertyName
PropertyNameComputed ../unions/PropertyName
PropertyNameNonComputed ../unions/PropertyName
Accessibility ./Accessibility
BaseNode ./BaseNode

Interfaces

PropertyDefinitionBase

Interface Code
interface PropertyDefinitionBase extends BaseNode {
  accessibility: Accessibility | undefined;
  computed: boolean;
  declare: boolean;
  decorators: Decorator[];
  definite: boolean;
  key: PropertyName;
  optional: boolean;
  override: boolean;
  readonly: boolean;
  static: boolean;
  typeAnnotation: TSTypeAnnotation | undefined;
  value: Expression | null;
}

Properties

Name Type Optional Description
accessibility Accessibility | undefined
computed boolean
declare boolean
decorators Decorator[]
definite boolean
key PropertyName
optional boolean
override boolean
readonly boolean
static boolean
typeAnnotation TSTypeAnnotation | undefined
value Expression | null

PropertyDefinitionComputedNameBase

Interface Code
export interface PropertyDefinitionComputedNameBase
  extends PropertyDefinitionBase {
  computed: true;
  key: PropertyNameComputed;
}

Properties

Name Type Optional Description
computed true
key PropertyNameComputed

PropertyDefinitionNonComputedNameBase

Interface Code
export interface PropertyDefinitionNonComputedNameBase
  extends PropertyDefinitionBase {
  computed: false;
  key: PropertyNameNonComputed;
}

Properties

Name Type Optional Description
computed false
key PropertyNameNonComputed

ClassPropertyDefinitionNonComputedNameBase

Interface Code
export interface ClassPropertyDefinitionNonComputedNameBase
  extends PropertyDefinitionBase {
  computed: false;
  key: ClassPropertyNameNonComputed;
}

Properties

Name Type Optional Description
computed false
key ClassPropertyNameNonComputed