Skip to main content

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