⬅️ Back to Table of Contents
📄 spec.ts
📊 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 |
✗ |
|
accessibility |
Accessibility | undefined |
✗ |
|
computed |
boolean |
✗ |
|
key |
PropertyName |
✗ |
|
optional |
boolean |
✗ |
|
readonly |
boolean |
✗ |
|
static |
boolean |
✗ |
|
typeAnnotation |
TSTypeAnnotation | undefined |
✗ |
|
TSPropertySignatureComputedName
Interface Code
export interface TSPropertySignatureComputedName
extends TSPropertySignatureBase {
computed: true;
key: PropertyNameComputed;
}
Properties
Name |
Type |
Optional |
Description |
computed |
true |
✗ |
|
key |
PropertyNameComputed |
✗ |
|
TSPropertySignatureNonComputedName
Interface Code
export interface TSPropertySignatureNonComputedName
extends TSPropertySignatureBase {
computed: false;
key: PropertyNameNonComputed;
}
Properties
Name |
Type |
Optional |
Description |
computed |
false |
✗ |
|
key |
PropertyNameNonComputed |
✗ |
|
Type Aliases
TSPropertySignature
type TSPropertySignature = | TSPropertySignatureComputedName
| TSPropertySignatureNonComputedName;