Interface Property AST TypeScript Object
The TypeScriptInterfaceProperty
object matches a property in an interface.
The astType
value for this node is typeoperation
.
Code Pattern
This object catches label: string;
in the following code pattern:
interface LabeledValue {
label: string;
}
The TypeOperation
captures the element number | string
or number & string
in the code above.
Attributes
name
(AstElement
, but in the majority of cases, is anAstString
): left side of the operationvalue
(AstElement
): the underlying type