Interface Index Signature AST TypeScript Object
The TypeScriptInterfaceIndexSignature
object matches a index signature in an interface.
The astType
value for this node is interfaceproperty
.
Code Pattern
This object catches [key: string]: string;
in the following code pattern:
interface StringByString {
[key: string]: string;
}
Attributes
keyName
(AstElement
, but in the majority of cases, is anAstString
): left side of the operationvalue
(AstString
): the type of the key (number or string)key
(AstElement
): the underlying type