Skip to main content

ExtensionBuildState

interface
interface ExtensionBuildState<Init>

Import

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

Members5

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
() => Init

The result of the init 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.