ExtensionRegisterState
interfaceAn object that the register method can use to detect unmount and access the configuration for extension dependencies
Import
import { ExtensionRegisterState } from '@modular/sdk/editor';Members7
- getDependency
<Dependency extends AnyLexicalExtension>(dep: Dependency) => LexicalExtensionDependency<Dependency>Get the configuration of a dependency by extension (must be a direct dependency of this extension)
- getDirectDependentNames
() => ReadonlySet<string>Get the names of any direct dependents of this Extension, typically only used for error messages.
- getInitResult
() => InitThe result of the init function
- getOutput
() => OutputThe result of the output function
- getPeer
<Dependency extends AnyLexicalExtension = never>(name: Dependency['name']) => undefined | LexicalExtensionDependency<Dependency>Get the result of a peerDependency by name, if it exists (must be a peerDependency of this extension)
- getPeerNameSet
() => ReadonlySet<string>Get the names of all peer dependencies of this Extension, even if they do not exist in the builder, typically only used for devtools.
- getSignal
() => AbortSignalAn AbortSignal that is aborted when this LexicalEditor registration is disposed