Skip to main content

SlotName

type

Slot-name hint for a host node's slot accessors: the names declared in the host class's `$config().slots` (for editor autocomplete) unioned with `string` — every string is still accepted (slots take undeclared names at runtime), the declared names just surface as suggestions. A class declaring no slots, or a subclass that inherits them without redeclaring, resolves to plain `string`.

type SlotName<T extends LexicalNode> = DeclaredSlotNames<T> | (string & {})

Import

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