Skip to content

NodeType

Unofficial

Represents a type of syntax node in the tree.

Import:

import type { NodeType } from '@obsidian-typings/obsidian-public-latest';

Signature:

export class NodeType

Properties

PropertyTypeDescription
idnumberThe numeric id of this node type.
namestringThe name of this node type.
noneNodeTypeA dummy node type used when no actual type is available.
prop<T>(prop: NodeProp<T>) => T | undefinedRetrieve the value of a given node prop for this type.

Links to this page: