Skip to main content

NormalizedPeerDependency

type

The result of declarePeerDependency, a tuple of a peer dependency name and its associated configuration. The configuration is an optional element rather than a required one that may be undefined, so a declaration without a config is `[name]` — every consumer destructures the tuple, and this is what lets the build inline the call to its arguments.

type NormalizedPeerDependency<Extension extends AnyLexicalExtension> = [ name: Extension['name'], config?: Partial<LexicalExtensionConfig<Extension>> ] & { readonly [peerDependencySymbol]?: Extension; }

Import

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