Skip to main content

OwnStaticNodeConfig

interface
interface OwnStaticNodeConfig

Import

import { OwnStaticNodeConfig } from '@modular/sdk/editor';

Members4

declaresOwnConfig
boolean

Whether `klass` declared `$config()` itself. `ownNodeConfig` is the config the class *resolves* to, which for a class that declared none is its ancestor's — reached through the inherited method, and a fresh object each time, since `$config()` builds its result per call. Anything walking the chain has to tell the two apart or it attributes an ancestor's declarations to the subclass and counts them twice; see iterStaticNodeConfigChain.

klass
Klass<LexicalNode>
ownNodeConfig
undefined | StaticNodeConfigValue<LexicalNode, string | symbol>
ownNodeType
undefined | string