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

Property Type Description
id number The numeric id of this node type.
name string The name of this node type.
none NodeType A dummy node type used when no actual type is available.
prop <T>(prop: NodeProp<T>) => T | undefined Retrieve the value of a given node prop for this type.

Links to this page: