Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "node/factory"

Index

Interfaces

Type aliases

Functions

Type aliases

Constructors

Constructors: IConstructor<AudioInit, Audio<any>> | IConstructor<BannerInit, Banner<any>> | IConstructor<CardInit, Card<any>> | IConstructor<CarouselInit, Carousel<any>> | IConstructor<CodeInit, Code<any>> | IConstructor<ContainerInit, Container<any>> | IConstructor<GradedTextInit, GradedText<any>> | IConstructor<HeadingInit, Heading<any>> | IConstructor<ImageInit, Image<any>> | IConstructor<LinkInit, Link<any>> | IConstructor<ListInit, List<any>> | IConstructor<ModalInit, Modal<any>> | IConstructor<PaddingInit, Padding<any>> | IConstructor<QuoteInit, Quote<any>> | IConstructor<SeparatorInit, Separator<any>> | IConstructor<ScrollableInit, Scrollable<any>> | IConstructor<SpanInit, Span<any>> | IConstructor<TextInit, Text<any>> | IConstructor<VideoInit, Video<any>>

Functions

factory

  • factory<IExtension>(node: INodeExtendedImmutable<IExtension>, copy?: Copy<IExtension>): NodeExtended<IExtension>
  • Converts a node tree into concrete classes. This will validate the tree as all of the node classes validate the options on construction.

    Type parameters

    • IExtension

    Parameters

    • node: INodeExtendedImmutable<IExtension>

      the node tree to copy

    • Optional copy: Copy<IExtension>

      the function to use to copy extensions

    Returns NodeExtended<IExtension>

    the constructed node class tree

register