Skip to content

⬅️ Back to Table of Contents

📄 PropertyDefinitionBase

📊 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 not shown
computed boolean not shown
declare boolean not shown
decorators Decorator[] not shown
definite boolean not shown
key PropertyName not shown
optional boolean not shown
override boolean not shown
readonly boolean not shown
static boolean not shown
typeAnnotation TSTypeAnnotation \| undefined not shown
value Expression \| null not shown

PropertyDefinitionComputedNameBase

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

Properties

Name Type Optional Description
computed true not shown
key PropertyNameComputed not shown

PropertyDefinitionNonComputedNameBase

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

Properties

Name Type Optional Description
computed false not shown
key PropertyNameNonComputed not shown

ClassPropertyDefinitionNonComputedNameBase

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

Properties

Name Type Optional Description
computed false not shown
key ClassPropertyNameNonComputed not shown

Generated by Syntax Scribe