Skip to content

NodeProp<T>

Unofficial

A node prop is a value associated with node types.

Import:

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

Signature:

export class NodeProp<T>

Properties

PropertyTypeDescription
closedByNodeProp<readonly string[]>Prop for closed bracket names.
contextHashNodeProp<number>Context hash prop, used to distinguish nodes that would otherwise look the same.
deserialize(str: string) => TA function to deserialize prop values from strings.
groupNodeProp<readonly string[]>Prop for node grouping.
lookAheadNodeProp<number>Look-ahead prop, indicating how far the tokenizer looked ahead.
mountedNodeProp<MountedLezerTree>Prop used to mount additional trees on a node.
openedByNodeProp<readonly string[]>Prop for open bracket names.
perNodebooleanWhether this prop is stored per node rather than per type.

Methods

MethodReturnsDescription
add(match)NodePropSourceCreate a prop source that adds this prop to matching node types.

Links to this page: