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
| Property | Type | Description | |
|---|---|---|---|
| closedBy | NodeProp<readonly string[]> | Prop for closed bracket names. | |
| contextHash | NodeProp<number> | Context hash prop, used to distinguish nodes that would otherwise look the same. | |
| deserialize | (str: string) => T | A function to deserialize prop values from strings. | |
| group | NodeProp<readonly string[]> | Prop for node grouping. | |
| lookAhead | NodeProp<number> | Look-ahead prop, indicating how far the tokenizer looked ahead. | |
| mounted | NodeProp<MountedLezerTree> | Prop used to mount additional trees on a node. | |
| openedBy | NodeProp<readonly string[]> | Prop for open bracket names. | |
| perNode | boolean | Whether this prop is stored per node rather than per type. |
Methods
| Method | Returns | Description | |
|---|---|---|---|
| add(match) | NodePropSource | Create a prop source that adds this prop to matching node types. |
Links to this page: