gram_ast.gramproperty


gram.js API

Globals / gram-ast / GramProperty

Interface: GramProperty

A GramProperty is a name/value pair.

Hierarchy

  • Node

    GramProperty

Indexable

▪ [key: string]: unknown

A GramProperty is a name/value pair.

Index

Properties

Properties

data

Optional data: Data

Inherited from GramSeq.data

Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:23

Information from the ecosystem.


name

name: string

Defined in packages/gram-ast/src/index.ts:255

The property name.


position

Optional position: Position

Inherited from GramSeq.position

Defined in packages/gram-ast/node_modules/@types/unist/index.d.ts:29

Location of a node in a source document. Must not be present if a node is generated.


type

type: "property"

Overrides void

Defined in packages/gram-ast/src/index.ts:250

Type discriminator for this AST element, always ‘property’.


value

value: GramRecordValue

Defined in packages/gram-ast/src/index.ts:260

The property value. Either a single literal, an array of literals, or a GramRecord.