⬅️ Back to Table of Contents
📄 spec.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
6 |
📐 Interfaces |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/ast-spec/src/parameter/AssignmentPattern/spec.ts
📦 Imports
Name |
Source |
AST_NODE_TYPES |
../../ast-node-types |
BaseNode |
../../base/BaseNode |
Decorator |
../../special/Decorator/spec |
TSTypeAnnotation |
../../special/TSTypeAnnotation/spec |
BindingName |
../../unions/BindingName |
Expression |
../../unions/Expression |
Interfaces
AssignmentPattern
Interface Code
export interface AssignmentPattern extends BaseNode {
type: AST_NODE_TYPES.AssignmentPattern;
decorators: Decorator[];
left: BindingName;
optional: boolean;
right: Expression;
typeAnnotation: TSTypeAnnotation | undefined;
}
Properties
Name |
Type |
Optional |
Description |
type |
AST_NODE_TYPES.AssignmentPattern |
✗ |
|
decorators |
Decorator[] |
✗ |
|
left |
BindingName |
✗ |
|
optional |
boolean |
✗ |
|
right |
Expression |
✗ |
|
typeAnnotation |
TSTypeAnnotation | undefined |
✗ |
|