Skip to content

⬅️ Back to Table of Contents

📄 TSPropertySignature/spec

📊 Analysis Summary

Metric Count
📦 Imports 7
📐 Interfaces 3
📑 Type Aliases 1

📚 Table of Contents

🛠️ File Location:

📂 packages/ast-spec/src/element/TSPropertySignature/spec.ts

📦 Imports

Name Source
AST_NODE_TYPES ../../ast-node-types
Accessibility ../../base/Accessibility
BaseNode ../../base/BaseNode
TSTypeAnnotation ../../special/TSTypeAnnotation/spec
PropertyName ../../unions/PropertyName
PropertyNameComputed ../../unions/PropertyName
PropertyNameNonComputed ../../unions/PropertyName

Interfaces

TSPropertySignatureBase

Interface Code
interface TSPropertySignatureBase extends BaseNode {
  type: AST_NODE_TYPES.TSPropertySignature;
  accessibility: Accessibility | undefined;
  computed: boolean;
  key: PropertyName;
  optional: boolean;
  readonly: boolean;
  static: boolean;
  typeAnnotation: TSTypeAnnotation | undefined;
}

Properties

Name Type Optional Description
type AST_NODE_TYPES.TSPropertySignature not shown
accessibility Accessibility \| undefined not shown
computed boolean not shown
key PropertyName not shown
optional boolean not shown
readonly boolean not shown
static boolean not shown
typeAnnotation TSTypeAnnotation \| undefined not shown

TSPropertySignatureComputedName

Interface Code
export interface TSPropertySignatureComputedName extends TSPropertySignatureBase {
  computed: true;
  key: PropertyNameComputed;
}

Properties

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

TSPropertySignatureNonComputedName

Interface Code
export interface TSPropertySignatureNonComputedName extends TSPropertySignatureBase {
  computed: false;
  key: PropertyNameNonComputed;
}

Properties

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

Type Aliases

TSPropertySignature

type TSPropertySignature = TSPropertySignatureComputedName | TSPropertySignatureNonComputedName;

Generated by Syntax Scribe